From http://www.jwz.org/xscreensaver/xscreensaver-5.15.tar.gz
[xscreensaver] / hacks / glx / tronbit_yes.c
diff --git a/hacks/glx/tronbit_yes.c b/hacks/glx/tronbit_yes.c
new file mode 100644 (file)
index 0000000..376e96c
--- /dev/null
@@ -0,0 +1,31 @@
+/* yes = tetrahedron */
+
+#include "gllist.h"
+static const float data[]={
+       0.57735,0.57735,0.57735,0,0,0.5,
+       0.57735,0.57735,0.57735,0.5,0,0,
+       0.57735,0.57735,0.57735,0,0.5,0,
+       -0.57735,0.57735,0.57735,0,0,0.5,
+       -0.57735,0.57735,0.57735,0,0.5,0,
+       -0.57735,0.57735,0.57735,-0.5,0,0,
+       -0.57735,-0.57735,0.57735,0,0,0.5,
+       -0.57735,-0.57735,0.57735,-0.5,0,0,
+       -0.57735,-0.57735,0.57735,0,-0.5,0,
+       0.57735,-0.57735,0.57735,0,0,0.5,
+       0.57735,-0.57735,0.57735,0,-0.5,0,
+       0.57735,-0.57735,0.57735,0.5,0,0,
+       0.57735,-0.57735,-0.57735,0.5,0,0,
+       0.57735,-0.57735,-0.57735,0,-0.5,0,
+       0.57735,-0.57735,-0.57735,0,0,-0.5,
+       0.57735,0.57735,-0.57735,0.5,0,0,
+       0.57735,0.57735,-0.57735,0,0,-0.5,
+       0.57735,0.57735,-0.57735,0,0.5,0,
+       -0.57735,0.57735,-0.57735,0,0.5,0,
+       -0.57735,0.57735,-0.57735,0,0,-0.5,
+       -0.57735,0.57735,-0.57735,-0.5,0,0,
+       -0.57735,-0.57735,-0.57735,-0.5,0,0,
+       -0.57735,-0.57735,-0.57735,0,0,-0.5,
+       -0.57735,-0.57735,-0.57735,0,-0.5,0
+};
+static const struct gllist frame={GL_N3F_V3F,GL_TRIANGLES,24,data,NULL};
+const struct gllist *tronbit_yes=&frame;