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
/
tangram_shapes.c
diff --git
a/hacks/glx/tangram_shapes.c
b/hacks/glx/tangram_shapes.c
index 283c2ba40dda58b98a856d625d0c5ae9937bd314..916d0a88735ba517b4261dcd0e4c2d49e1e307a2 100644
(file)
--- a/
hacks/glx/tangram_shapes.c
+++ b/
hacks/glx/tangram_shapes.c
@@
-9,7
+9,13
@@
* implied warranty.
*/
* implied warranty.
*/
-#include <GL/gl.h>
+#ifdef HAVE_COCOA
+# include <OpenGL/gl.h>
+#else
+# include <GL/gl.h>
+#endif
+
+#include "tangram_shapes.h"
#define small_scale ( 1 )
#define large_scale ( 2 )
#define small_scale ( 1 )
#define large_scale ( 2 )
@@
-75,6
+81,7
@@
static void tri_45_90(int wire)
glEnd();
}
glEnd();
}
+static
void unit_cube(int wire)
{
glBegin((wire) ? GL_LINE_LOOP : GL_QUADS);
void unit_cube(int wire)
{
glBegin((wire) ? GL_LINE_LOOP : GL_QUADS);
@@
-119,6
+126,7
@@
void unit_cube(int wire)
glEnd();
}
glEnd();
}
+static
void unit_rhomboid(int wire)
{
glBegin((wire) ? GL_LINE_LOOP : GL_QUADS);
void unit_rhomboid(int wire)
{
glBegin((wire) ? GL_LINE_LOOP : GL_QUADS);