projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://slackware.bholcomb.com/slackware/slackware-11.0/source/xap/xscreensaver/xscree...
[xscreensaver]
/
hacks
/
glx
/
buildlwo.h
diff --git
a/hacks/glx/buildlwo.h
b/hacks/glx/buildlwo.h
index fd9f027efd9e74e8149a818275f7ede40284083b..89c93e342c4daf044c0b5863b79303a2970d8764 100644
(file)
--- a/
hacks/glx/buildlwo.h
+++ b/
hacks/glx/buildlwo.h
@@
-9,15
+9,23
@@
#ifndef __BUILD_LWO_H__
#define __BUILD_LWO_H__
#ifndef __BUILD_LWO_H__
#define __BUILD_LWO_H__
+#ifdef STANDALONE
+# ifdef HAVE_COCOA
+# include <OpenGL/gl.h>
+# else
+# include <GL/gl.h>
+# endif
+#endif
+
struct lwo {
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
#endif