X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fbuildlwo.h;h=b7fbbd9471051c2417d64b50b222f012fafbf822;hb=aa75c7476aeaa84cf3abc192b376a8b03c325213;hp=fd9f027efd9e74e8149a818275f7ede40284083b;hpb=f3e0240915ed9f9b3a61781f5c7002d587563fe0;p=xscreensaver diff --git a/hacks/glx/buildlwo.h b/hacks/glx/buildlwo.h index fd9f027e..b7fbbd94 100644 --- a/hacks/glx/buildlwo.h +++ b/hacks/glx/buildlwo.h @@ -9,15 +9,34 @@ #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 +# endif +#endif + +#ifdef HAVE_ANDROID +# include +#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