summaryrefslogtreecommitdiffstats
path: root/hacks/glx/tronbit_yes.c
diff options
context:
space:
mode:
authorSimon Rettberg2018-10-16 10:08:48 +0200
committerSimon Rettberg2018-10-16 10:08:48 +0200
commitd3a98cf6cbc3bd0b9efc570f58e8812c03931c18 (patch)
treecbddf8e50f35a9c6e878a5bfe3c6d625d99e12ba /hacks/glx/tronbit_yes.c
downloadxscreensaver-d3a98cf6cbc3bd0b9efc570f58e8812c03931c18.tar.gz
xscreensaver-d3a98cf6cbc3bd0b9efc570f58e8812c03931c18.tar.xz
xscreensaver-d3a98cf6cbc3bd0b9efc570f58e8812c03931c18.zip
Original 5.40
Diffstat (limited to 'hacks/glx/tronbit_yes.c')
-rw-r--r--hacks/glx/tronbit_yes.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/hacks/glx/tronbit_yes.c b/hacks/glx/tronbit_yes.c
new file mode 100644
index 0000000..376e96c
--- /dev/null
+++ b/hacks/glx/tronbit_yes.c
@@ -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;