From http://www.jwz.org/xscreensaver/xscreensaver-5.30.tar.gz
[xscreensaver] / hacks / glx / toast.c
index e2ea6024120ad7ec6e773c7cafa5c67437106d9c..eb84601625b3ef56ad6ecfb48e892d8081cefdfc 100644 (file)
@@ -1,53 +1,58 @@
+/* Generated from "toast.dxf" on Aug-22-2014.
+   Smoothed vertex normals. Normalized to unit bounding box.
+ */
+
 #include "gllist.h"
-static const float data[]={
-       0,0,0,0.391859,-0.5,0.047937,
-       -0.767086,-0.641544,0,-0.3866,-0.5,-0.047937,
+
+static const float toast_data[] = {
+       0,-1,0,0.391859,-0.5,0.047937,
+       0,-1,0,-0.3866,-0.5,-0.047937,
+       0,-1,0,0.391859,-0.5,-0.047937,
+       0,-1,0,-0.3866,-0.5,-0.047937,
+       0,-1,0,0.391859,-0.5,0.047937,
+       0,-1,0,-0.3866,-0.5,0.047937,
+       0.794299,-0.607527,0,0.448134,-0.426425,-0.047937,
+       0.794299,-0.607527,0,0.391859,-0.5,0.047937,
        0.794299,-0.607527,0,0.391859,-0.5,-0.047937,
-       -0.767086,-0.641544,0,-0.3866,-0.5,-0.047937,
-       0,0,0,0.391859,-0.5,0.047937,
-       0.794299,-0.607527,0,-0.3866,-0.5,0.047937,
-       0.94718,-0.320703,0,0.448134,-0.426425,-0.047937,
-       1,0,0,0.391859,-0.5,0.047937,
-       0.94718,-0.320703,0,0.391859,-0.5,-0.047937,
-       1,0,0,0.391859,-0.5,0.047937,
-       0.94718,-0.320703,0,0.448134,-0.426425,-0.047937,
-       1,0,0,0.448134,-0.426425,0.047937,
-       0.919578,0.392907,0,0.448134,0.061584,-0.047937,
+       0.794299,-0.607527,0,0.391859,-0.5,0.047937,
+       0.794299,-0.607527,0,0.448134,-0.426425,-0.047937,
+       0.794299,-0.607527,0,0.448134,-0.426425,0.047937,
+       1,0,0,0.448134,0.061584,-0.047937,
        1,0,0,0.448134,-0.426425,0.047937,
-       0.94718,-0.320703,0,0.448134,-0.426425,-0.047937,
+       1,0,0,0.448134,-0.426425,-0.047937,
        1,0,0,0.448134,-0.426425,0.047937,
-       0.919578,0.392907,0,0.448134,0.061584,-0.047937,
+       1,0,0,0.448134,0.061584,-0.047937,
        1,0,0,0.448134,0.061584,0.047937,
-       0.15469,0.987963,0,-0.3866,0.438467,0.047937,
-       -0.987898,0.155108,0,-0.448134,0.247342,-0.047937,
-       -0.306512,0.951867,0,-0.448134,0.247342,0.047937,
-       -0.987898,0.155108,0,-0.448134,0.247342,-0.047937,
-       0.15469,0.987963,0,-0.3866,0.438467,0.047937,
-       -0.306512,0.951867,0,-0.3866,0.438467,-0.047937,
-       -0.306512,0.951867,0,-0.448134,0.247342,0.047937,
-       -0.757441,-0.652904,0,-0.448134,0.184705,-0.047937,
-       -0.757441,-0.652904,0,-0.448134,0.184705,0.047937,
-       -0.757441,-0.652904,0,-0.448134,0.184705,-0.047937,
-       -0.306512,0.951867,0,-0.448134,0.247342,0.047937,
-       -0.987898,0.155108,0,-0.448134,0.247342,-0.047937,
-       0.484474,0.874806,0,-0.3866,0.438467,0.047937,
-       0,1,0,-0.195512,0.5,-0.047937,
+       -0.951883,0.306462,0,-0.3866,0.438467,0.047937,
+       -0.978441,0.206528,0,-0.448134,0.247342,-0.047937,
+       -0.994654,0.103264,0,-0.448134,0.247342,0.047937,
+       -0.978441,0.206528,0,-0.448134,0.247342,-0.047937,
+       -0.951883,0.306462,0,-0.3866,0.438467,0.047937,
+       -0.951883,0.306462,0,-0.3866,0.438467,-0.047937,
+       -0.994654,0.103264,0,-0.448134,0.247342,0.047937,
+       -1,0,0,-0.448134,0.184705,-0.047937,
+       -1,0,0,-0.448134,0.184705,0.047937,
+       -1,0,0,-0.448134,0.184705,-0.047937,
+       -0.994654,0.103264,0,-0.448134,0.247342,0.047937,
+       -0.978441,0.206528,0,-0.448134,0.247342,-0.047937,
+       -0.306512,0.951867,0,-0.3866,0.438467,0.047937,
+       -0.206563,0.978433,0,-0.195512,0.5,-0.047937,
        -0.306512,0.951867,0,-0.3866,0.438467,-0.047937,
-       0,1,0,-0.195512,0.5,-0.047937,
-       0.484474,0.874806,0,-0.3866,0.438467,0.047937,
-       0.484474,0.874806,0,-0.195512,0.5,0.047937,
-       1,0,0,0.448134,0.247342,-0.047937,
-       0.999987,0.005091,0,0.448134,0.184705,0.047937,
-       0.922977,-0.384855,0,0.448134,0.184705,-0.047937,
-       0.999987,0.005091,0,0.448134,0.184705,0.047937,
-       1,0,0,0.448134,0.247342,-0.047937,
-       0.999987,0.005091,0,0.448134,0.247342,0.047937,
-       0.703967,0.710233,0,0.384905,0.438467,-0.047937,
-       0.999987,0.005091,0,0.448134,0.247342,0.047937,
-       1,0,0,0.448134,0.247342,-0.047937,
-       0.999987,0.005091,0,0.448134,0.247342,0.047937,
-       0.703967,0.710233,0,0.384905,0.438467,-0.047937,
-       0.703967,0.710233,0,0.384905,0.438467,0.047937,
+       -0.206563,0.978433,0,-0.195512,0.5,-0.047937,
+       -0.306512,0.951867,0,-0.3866,0.438467,0.047937,
+       -0.103281,0.994652,0,-0.195512,0.5,0.047937,
+       0.994378,0.105891,0,0.448134,0.247342,-0.047937,
+       1,0,0,0.448134,0.184705,0.047937,
+       1,0,0,0.448134,0.184705,-0.047937,
+       1,0,0,0.448134,0.184705,0.047937,
+       0.994378,0.105891,0,0.448134,0.247342,-0.047937,
+       0.977317,0.211783,0,0.448134,0.247342,0.047937,
+       0.949396,0.314082,0,0.384905,0.438467,-0.047937,
+       0.977317,0.211783,0,0.448134,0.247342,0.047937,
+       0.994378,0.105891,0,0.448134,0.247342,-0.047937,
+       0.977317,0.211783,0,0.448134,0.247342,0.047937,
+       0.949396,0.314082,0,0.384905,0.438467,-0.047937,
+       0.949396,0.314082,0,0.384905,0.438467,0.047937,
        0,0,-1,-0.3866,0.438467,-0.047937,
        0,0,-1,-0.448134,0.184705,-0.047937,
        0,0,-1,-0.448134,0.247342,-0.047937,
@@ -55,9 +60,9 @@ static const float data[]={
        0,0,-1,-0.3866,0.438467,-0.047937,
        0,0,-1,-0.394142,0.122068,-0.047937,
        0,0,-1,0.448134,0.247342,-0.047937,
-       0,0,0,0.384905,0.122068,-0.047937,
-       0,0,0,0.384905,0.438467,-0.047937,
-       0,0,0,0.384905,0.122068,-0.047937,
+       0,0,-1,0.384905,0.122068,-0.047937,
+       0,0,-1,0.384905,0.438467,-0.047937,
+       0,0,-1,0.384905,0.122068,-0.047937,
        0,0,-1,0.448134,0.247342,-0.047937,
        0,0,-1,0.448134,0.184705,-0.047937,
        0,0,-1,-0.394142,0.122068,-0.047937,
@@ -77,64 +82,64 @@ static const float data[]={
        0,0,-1,0.391859,-0.5,-0.047937,
        0,0,-1,0.391859,-0.5,-0.047937,
        0,0,-1,-0.195512,0.5,-0.047937,
-       0,0,0,0.193226,0.5,-0.047937,
+       0,0,-1,0.193226,0.5,-0.047937,
        0,0,-1,0.391859,-0.5,-0.047937,
-       0,0,0,0.193226,0.5,-0.047937,
-       0,0,0,0.384905,0.122068,-0.047937,
-       0,0,0,0.384905,0.122068,-0.047937,
-       0,0,0,0.193226,0.5,-0.047937,
-       0,0,0,0.384905,0.438467,-0.047937,
+       0,0,-1,0.193226,0.5,-0.047937,
+       0,0,-1,0.384905,0.122068,-0.047937,
+       0,0,-1,0.384905,0.122068,-0.047937,
+       0,0,-1,0.193226,0.5,-0.047937,
+       0,0,-1,0.384905,0.438467,-0.047937,
        0,0,-1,0.391859,-0.5,-0.047937,
-       0,0,0,0.384905,0.122068,-0.047937,
-       0,0,0,0.448134,0.061584,-0.047937,
+       0,0,-1,0.384905,0.122068,-0.047937,
+       0,0,-1,0.448134,0.061584,-0.047937,
        0,0,-1,0.391859,-0.5,-0.047937,
-       0,0,0,0.448134,0.061584,-0.047937,
+       0,0,-1,0.448134,0.061584,-0.047937,
        0,0,-1,0.448134,-0.426425,-0.047937,
-       0.703967,0.710233,0,0.193226,0.5,0.047937,
-       0.703967,0.710233,0,0.384905,0.438467,-0.047937,
-       0.484474,0.874806,0,0.193226,0.5,-0.047937,
-       0.703967,0.710233,0,0.384905,0.438467,-0.047937,
-       0.703967,0.710233,0,0.193226,0.5,0.047937,
-       0.703967,0.710233,0,0.384905,0.438467,0.047937,
-       0.484474,0.874806,0,-0.195512,0.5,0.047937,
-       0.484474,0.874806,0,0.193226,0.5,-0.047937,
-       0,1,0,-0.195512,0.5,-0.047937,
-       0.484474,0.874806,0,0.193226,0.5,-0.047937,
-       0.484474,0.874806,0,-0.195512,0.5,0.047937,
-       0.703967,0.710233,0,0.193226,0.5,0.047937,
-       0.919578,0.392907,0,0.384905,0.122068,0.047937,
-       0.919578,0.392907,0,0.448134,0.061584,-0.047937,
-       0.919578,0.392907,0,0.384905,0.122068,-0.047937,
-       0.919578,0.392907,0,0.448134,0.061584,-0.047937,
-       0.919578,0.392907,0,0.384905,0.122068,0.047937,
-       1,0,0,0.448134,0.061584,0.047937,
-       -0.999962,0.008668,0,-0.448134,0.061584,0.047937,
-       -0.93997,-0.341258,0,-0.448134,-0.426425,-0.047937,
-       -0.93997,-0.341258,0,-0.448134,-0.426425,0.047937,
-       -0.93997,-0.341258,0,-0.448134,-0.426425,-0.047937,
-       -0.999962,0.008668,0,-0.448134,0.061584,0.047937,
-       -0.746008,0.665937,0,-0.448134,0.061584,-0.047937,
-       -0.93997,-0.341258,0,-0.448134,-0.426425,0.047937,
-       -0.93997,-0.341258,0,-0.3866,-0.5,-0.047937,
-       0,0,0,-0.3866,-0.5,0.047937,
-       -0.93997,-0.341258,0,-0.3866,-0.5,-0.047937,
-       -0.93997,-0.341258,0,-0.448134,-0.426425,0.047937,
-       -0.93997,-0.341258,0,-0.448134,-0.426425,-0.047937,
-       0.922977,-0.384855,0,0.448134,0.184705,0.047937,
-       0.922977,-0.384855,0,0.384905,0.122068,-0.047937,
-       0.922977,-0.384855,0,0.448134,0.184705,-0.047937,
-       0.922977,-0.384855,0,0.384905,0.122068,-0.047937,
-       0.922977,-0.384855,0,0.448134,0.184705,0.047937,
-       0.922977,-0.384855,0,0.384905,0.122068,0.047937,
-       -0.999962,0.008668,0,-0.394142,0.122068,0.047937,
+       0.205973,0.978558,0,0.193226,0.5,0.047937,
+       0.305656,0.952142,0,0.384905,0.438467,-0.047937,
+       0.102986,0.994683,0,0.193226,0.5,-0.047937,
+       0.305656,0.952142,0,0.384905,0.438467,-0.047937,
+       0.205973,0.978558,0,0.193226,0.5,0.047937,
+       0.305656,0.952142,0,0.384905,0.438467,0.047937,
+       -0.103281,0.994652,0,-0.195512,0.5,0.047937,
+       0.102986,0.994683,0,0.193226,0.5,-0.047937,
+       -0.206563,0.978433,0,-0.195512,0.5,-0.047937,
+       0.102986,0.994683,0,0.193226,0.5,-0.047937,
+       -0.103281,0.994652,0,-0.195512,0.5,0.047937,
+       0.205973,0.978558,0,0.193226,0.5,0.047937,
+       0.691249,0.722617,0,0.384905,0.122068,0.047937,
+       0.691249,0.722617,0,0.448134,0.061584,-0.047937,
+       0.691249,0.722617,0,0.384905,0.122068,-0.047937,
+       0.691249,0.722617,0,0.448134,0.061584,-0.047937,
+       0.691249,0.722617,0,0.384905,0.122068,0.047937,
+       0.691249,0.722617,0,0.448134,0.061584,0.047937,
+       -1,0,0,-0.448134,0.061584,0.047937,
+       -1,0,0,-0.448134,-0.426425,-0.047937,
+       -1,0,0,-0.448134,-0.426425,0.047937,
+       -1,0,0,-0.448134,-0.426425,-0.047937,
+       -1,0,0,-0.448134,0.061584,0.047937,
+       -1,0,0,-0.448134,0.061584,-0.047937,
+       -0.767086,-0.641544,0,-0.448134,-0.426425,0.047937,
+       -0.767086,-0.641544,0,-0.3866,-0.5,-0.047937,
+       -0.767086,-0.641544,0,-0.3866,-0.5,0.047937,
+       -0.767086,-0.641544,0,-0.3866,-0.5,-0.047937,
+       -0.767086,-0.641544,0,-0.448134,-0.426425,0.047937,
+       -0.767086,-0.641544,0,-0.448134,-0.426425,-0.047937,
+       0.703773,-0.710425,0,0.448134,0.184705,0.047937,
+       0.703773,-0.710425,0,0.384905,0.122068,-0.047937,
+       0.703773,-0.710425,0,0.448134,0.184705,-0.047937,
+       0.703773,-0.710425,0,0.384905,0.122068,-0.047937,
+       0.703773,-0.710425,0,0.448134,0.184705,0.047937,
+       0.703773,-0.710425,0,0.384905,0.122068,0.047937,
+       -0.746008,0.665937,0,-0.394142,0.122068,0.047937,
        -0.746008,0.665937,0,-0.448134,0.061584,-0.047937,
-       -0.999962,0.008668,0,-0.448134,0.061584,0.047937,
+       -0.746008,0.665937,0,-0.448134,0.061584,0.047937,
        -0.746008,0.665937,0,-0.448134,0.061584,-0.047937,
-       -0.999962,0.008668,0,-0.394142,0.122068,0.047937,
-       -0.757441,-0.652904,0,-0.394142,0.122068,-0.047937,
+       -0.746008,0.665937,0,-0.394142,0.122068,0.047937,
+       -0.746008,0.665937,0,-0.394142,0.122068,-0.047937,
        -0.757441,-0.652904,0,-0.448134,0.184705,0.047937,
        -0.757441,-0.652904,0,-0.394142,0.122068,-0.047937,
-       -0.999962,0.008668,0,-0.394142,0.122068,0.047937,
+       -0.757441,-0.652904,0,-0.394142,0.122068,0.047937,
        -0.757441,-0.652904,0,-0.394142,0.122068,-0.047937,
        -0.757441,-0.652904,0,-0.448134,0.184705,0.047937,
        -0.757441,-0.652904,0,-0.448134,0.184705,-0.047937,
@@ -181,5 +186,5 @@ static const float data[]={
        0,0,1,0.384905,0.122068,0.047937,
        0,0,1,0.448134,0.184705,0.047937
 };
-static const struct gllist frame={GL_N3F_V3F,GL_TRIANGLES,180,data,NULL};
-const struct gllist *toast=&frame;
+static const struct gllist toast_frame = { GL_N3F_V3F, GL_TRIANGLES, 180, toast_data, 0 };
+const struct gllist *toast = &toast_frame;