From http://www.jwz.org/xscreensaver/xscreensaver-5.35.tar.gz
[xscreensaver] / hacks / glx / buildlwo.h
1 /*-
2  * buildlwo.h: Header file for Lightwave Object Display List Builder
3  * for OpenGL
4  *
5  * by Ed Mackey, 4/19/97
6  *
7  */
8
9 #ifndef __BUILD_LWO_H__
10 #define __BUILD_LWO_H__
11
12 #ifdef HAVE_CONFIG_H
13 # include "config.h"
14 #endif /* HAVE_CONFIG_H */
15
16 #ifdef STANDALONE
17 # ifndef HAVE_JWXYZ
18 #  include <GL/gl.h>
19 # endif
20 #endif
21
22 #ifdef HAVE_ANDROID
23 # include <GLES/gl.h>
24 #endif
25
26
27 #ifdef HAVE_JWZGLES
28 # include "jwzgles.h"
29 #endif /* HAVE_JWZGLES */
30
31 struct lwo {
32         int             num_pnts;
33         const GLfloat  *pnts;
34         const GLfloat  *normals;
35         const unsigned  short int *pols;
36         const GLfloat  *smoothnormals;
37 };
38
39 GLuint      BuildLWO(int wireframe, const struct lwo *object);
40
41 #endif
42
43 /* End of buildlwo.h */