summaryrefslogtreecommitdiffstats
path: root/hacks/glx/buildlwo.h
blob: b7fbbd9471051c2417d64b50b222f012fafbf822 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*-
 * buildlwo.h: Header file for Lightwave Object Display List Builder
 * for OpenGL
 *
 * by Ed Mackey, 4/19/97
 *
 */

#ifndef __BUILD_LWO_H__
#define __BUILD_LWO_H__

#ifdef HAVE_CONFIG_H
# include "config.h"
#endif /* HAVE_CONFIG_H */

#ifdef STANDALONE
# ifndef HAVE_JWXYZ
#  include <GL/gl.h>
# endif
#endif

#ifdef HAVE_ANDROID
# include <GLES/gl.h>
#endif


#ifdef HAVE_JWZGLES
# include "jwzgles.h"
#endif /* HAVE_JWZGLES */

struct lwo {
	int             num_pnts;
	const GLfloat  *pnts;
	const GLfloat  *normals;
	const unsigned  short int *pols;
	const GLfloat  *smoothnormals;
};

GLuint      BuildLWO(int wireframe, const struct lwo *object);

#endif

/* End of buildlwo.h */