X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=hacks%2Fglx%2Fbuildlwo.c;h=ea88f999e55ef50a4357ba17fd9662fe6565de55;hb=488f2fa8fbdbc77e91a70da2962d73af49e6cace;hp=f405730de11a4f4b2258f1f13cb331f56cbfa0f5;hpb=f3e0240915ed9f9b3a61781f5c7002d587563fe0;p=xscreensaver diff --git a/hacks/glx/buildlwo.c b/hacks/glx/buildlwo.c index f405730d..ea88f999 100644 --- a/hacks/glx/buildlwo.c +++ b/hacks/glx/buildlwo.c @@ -1,7 +1,6 @@ -#if !defined( lint ) && !defined( SABER ) +#if 0 static const char sccsid[] = "@(#)buildlwo.c 4.02 97/04/20 xlockmore"; - #endif /*- @@ -11,7 +10,7 @@ static const char sccsid[] = "@(#)buildlwo.c 4.02 97/04/20 xlockmore"; * objects created in NewTek's Lightwave 3D. The objects must * first be converted to C source with my converter "lw2ogl". * If other people are interested in this, I will put up a - * web page for it at http://www.early.com/~emackey/lw2ogl/ + * web page for it at http://www.netaxs.com/~emackey/lw2ogl/ * * by Ed Mackey, 4/19/97 * @@ -23,19 +22,15 @@ static const char sccsid[] = "@(#)buildlwo.c 4.02 97/04/20 xlockmore"; #ifdef USE_GL -#ifdef STANDALONE -#include -#endif -#include -#include #include "buildlwo.h" GLuint -BuildLWO(int wireframe, struct lwo *object) +BuildLWO(int wireframe, const struct lwo *object) { GLuint dl_num; - GLfloat *pnts, *normals, three[3], *grab; - unsigned short int *pols; + const GLfloat *pnts, *normals, *grab; + const unsigned short int *pols; + GLfloat three[3]; int p, num_pnts = 0; dl_num = glGenLists(1);