From http://www.jwz.org/xscreensaver/xscreensaver-5.16.tar.gz
[xscreensaver] / hacks / glx / buildlwo.h
index fd9f027efd9e74e8149a818275f7ede40284083b..4b9008186f0b8d3a276a9e8b1adb5c78befebeea 100644 (file)
@@ -9,15 +9,29 @@
 #ifndef __BUILD_LWO_H__
 #define __BUILD_LWO_H__
 
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif /* HAVE_CONFIG_H */
+
+#ifdef STANDALONE
+# ifndef HAVE_COCOA
+#  include <GL/gl.h>
+# endif
+#endif
+
+#ifdef HAVE_JWZGLES
+# include "jwzgles.h"
+#endif /* HAVE_JWZGLES */
+
 struct lwo {
-       int         num_pnts;
-       GLfloat    *pnts;
-       GLfloat    *normals;
-       unsigned short int *pols;
-       GLfloat    *smoothnormals;
+       int             num_pnts;
+       const GLfloat  *pnts;
+       const GLfloat  *normals;
+       const unsigned  short int *pols;
+       const GLfloat  *smoothnormals;
 };
 
-GLuint      BuildLWO(int wireframe, struct lwo *object);
+GLuint      BuildLWO(int wireframe, const struct lwo *object);
 
 #endif