X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Ftoast2.c;h=3d653eee6fd0b624fe44b18bd22da67b7c25585c;hp=1f38415b199189230b3e49f5ce68720652a2ea6e;hb=6afd6db0ae9396cd7ff897ade597cd5483f49b0e;hpb=dba664f31aa87285db4d76cf8c5e66335299703a diff --git a/hacks/glx/toast2.c b/hacks/glx/toast2.c index 1f38415b..3d653eee 100644 --- a/hacks/glx/toast2.c +++ b/hacks/glx/toast2.c @@ -1,59 +1,64 @@ +/* Generated from "toast2.dxf" on Aug-22-2014. + Smoothed vertex normals. Normalized to unit bounding box. + */ + #include "gllist.h" -static const float data[]={ - -0.999962,0.008668,0,-0.394142,0.122068,0.047937, - -0.934347,0.356365,0,-0.448134,0.061584,-0.047937, - -0.934347,0.356365,0,-0.448134,0.061584,0.047937, - -0.934347,0.356365,0,-0.448134,0.061584,-0.047937, - -0.999962,0.008668,0,-0.394142,0.122068,0.047937, - 0,0,0,-0.394142,0.122068,-0.047937, - -0.937401,-0.348252,0,-0.448134,0.184705,0.047937, - 0,0,0,-0.394142,0.122068,-0.047937, - -0.999962,0.008668,0,-0.394142,0.122068,0.047937, - 0,0,0,-0.394142,0.122068,-0.047937, - -0.937401,-0.348252,0,-0.448134,0.184705,0.047937, - -1,0,0,-0.448134,0.184705,-0.047937, - 0,0,0,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,0,0.448134,0.247342,-0.047937, + +static const float toast2_data[] = { + -0.746008,0.665937,0,-0.394142,0.122068,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.746008,0.665937,0,-0.448134,0.061584,-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.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, + 0,0,-1,0.448134,0.247342,-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,0,-0.233894,0.20122,-0.047937, + 0,0,-1,-0.233894,0.20122,-0.047937, 0,0,-1,-0.448134,0.184705,-0.047937, 0,0,-1,-0.448134,0.247342,-0.047937, 0,0,-1,-0.448134,0.184705,-0.047937, - 0,0,0,-0.233894,0.20122,-0.047937, + 0,0,-1,-0.233894,0.20122,-0.047937, 0,0,-1,-0.394142,0.122068,-0.047937, 0,0,-1,-0.394142,0.122068,-0.047937, - 0,0,0,-0.233894,0.20122,-0.047937, + 0,0,-1,-0.233894,0.20122,-0.047937, 0,0,-1,-0.3866,-0.5,-0.047937, 0,0,-1,-0.3866,-0.5,-0.047937, - 0,0,0,-0.233894,0.20122,-0.047937, + 0,0,-1,-0.233894,0.20122,-0.047937, 0,0,-1,0.391859,-0.5,-0.047937, 0,0,-1,0.391859,-0.5,-0.047937, - 0,0,0,-0.233894,0.20122,-0.047937, - 0,0,0,-0.092355,0.236111,-0.047937, + 0,0,-1,-0.233894,0.20122,-0.047937, + 0,0,-1,-0.092355,0.236111,-0.047937, 0,0,-1,0.391859,-0.5,-0.047937, - 0,0,0,-0.092355,0.236111,-0.047937, - 0,0,0,-0.001143,0.324361,-0.047937, + 0,0,-1,-0.092355,0.236111,-0.047937, + 0,0,-1,-0.001143,0.324361,-0.047937, 0,0,-1,0.391859,-0.5,-0.047937, - 0,0,0,-0.001143,0.324361,-0.047937, + 0,0,-1,-0.001143,0.324361,-0.047937, 0,0,-1,0.039021,0.5,-0.047937, 0,0,-1,0.391859,-0.5,-0.047937, 0,0,-1,0.039021,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,0,0.448134,-0.426425,-0.047937, + 0,0,-1,0.448134,0.061584,-0.047937, + 0,0,-1,0.448134,-0.426425,-0.047937, 0,0,-1,-0.394142,0.122068,-0.047937, 0,0,-1,-0.448134,-0.426425,-0.047937, 0,0,-1,-0.448134,0.061584,-0.047937, @@ -61,15 +66,15 @@ static const float data[]={ 0,0,-1,-0.394142,0.122068,-0.047937, 0,0,-1,-0.3866,-0.5,-0.047937, 0,0,1,-0.3866,-0.5,0.047937, - 0,0,0,-0.448134,0.061584,0.047937, - 0,0,0,-0.448134,-0.426425,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,0,1,-0.448134,0.061584,0.047937, 0,0,1,-0.3866,-0.5,0.047937, 0,0,1,-0.394142,0.122068,0.047937, 0,0,1,-0.394142,0.122068,0.047937, - 0,0,0,-0.448134,0.247342,0.047937, + 0,0,1,-0.448134,0.247342,0.047937, 0,0,1,-0.448134,0.184705,0.047937, - 0,0,0,-0.448134,0.247342,0.047937, + 0,0,1,-0.448134,0.247342,0.047937, 0,0,1,-0.394142,0.122068,0.047937, 0,0,1,-0.233894,0.20122,0.047937, 0,0,1,-0.233894,0.20122,0.047937, @@ -109,101 +114,101 @@ static const float data[]={ 0,0,1,0.384905,0.122068,0.047937, 0,0,1,0.448134,0.184705,0.047937, 0.210457,0.977603,0,-0.448134,0.247342,0.047937, - -0.014824,0.99989,0,-0.233894,0.20122,-0.047937, + 0.061931,0.99808,0,-0.233894,0.20122,-0.047937, 0.210457,0.977603,0,-0.448134,0.247342,-0.047937, - -0.014824,0.99989,0,-0.233894,0.20122,-0.047937, + 0.061931,0.99808,0,-0.233894,0.20122,-0.047937, 0.210457,0.977603,0,-0.448134,0.247342,0.047937, - -0.239346,0.970934,0,-0.233894,0.20122,0.047937, - 0,1,0,0.039021,0.5,0.047937, - -0.871101,0.491104,0,-0.001143,0.324361,-0.047937, - -0.871101,0.491104,0,-0.001143,0.324361,0.047937, - -0.871101,0.491104,0,-0.001143,0.324361,-0.047937, - 0,1,0,0.039021,0.5,0.047937, - -0.623331,0.781958,0,0.039021,0.5,-0.047937, - -0.239346,0.970934,0,-0.233894,0.20122,0.047937, - -0.484063,0.875033,0,-0.092355,0.236111,-0.047937, - -0.014824,0.99989,0,-0.233894,0.20122,-0.047937, - -0.484063,0.875033,0,-0.092355,0.236111,-0.047937, - -0.239346,0.970934,0,-0.233894,0.20122,0.047937, - -0.871101,0.491104,0,-0.092355,0.236111,0.047937, - -0.871101,0.491104,0,-0.092355,0.236111,0.047937, - -0.871101,0.491104,0,-0.001143,0.324361,-0.047937, - -0.484063,0.875033,0,-0.092355,0.236111,-0.047937, - -0.871101,0.491104,0,-0.001143,0.324361,-0.047937, - -0.871101,0.491104,0,-0.092355,0.236111,0.047937, - -0.871101,0.491104,0,-0.001143,0.324361,0.047937, + -0.091493,0.995806,0,-0.233894,0.20122,0.047937, + -0.974837,0.222918,0,0.039021,0.5,0.047937, + -0.974837,0.222918,0,-0.001143,0.324361,-0.047937, + -0.974837,0.222918,0,-0.001143,0.324361,0.047937, + -0.974837,0.222918,0,-0.001143,0.324361,-0.047937, + -0.974837,0.222918,0,0.039021,0.5,0.047937, + -0.974837,0.222918,0,0.039021,0.5,-0.047937, + -0.091493,0.995806,0,-0.233894,0.20122,0.047937, + -0.239346,0.970934,0,-0.092355,0.236111,-0.047937, + 0.061931,0.99808,0,-0.233894,0.20122,-0.047937, + -0.239346,0.970934,0,-0.092355,0.236111,-0.047937, + -0.091493,0.995806,0,-0.233894,0.20122,0.047937, + -0.239346,0.970934,0,-0.092355,0.236111,0.047937, + -0.695338,0.718683,0,-0.092355,0.236111,0.047937, + -0.695338,0.718683,0,-0.001143,0.324361,-0.047937, + -0.695338,0.718683,0,-0.092355,0.236111,-0.047937, + -0.695338,0.718683,0,-0.001143,0.324361,-0.047937, + -0.695338,0.718683,0,-0.092355,0.236111,0.047937, + -0.695338,0.718683,0,-0.001143,0.324361,0.047937, -1,0,0,-0.448134,0.247342,0.047937, -1,0,0,-0.448134,0.184705,-0.047937, - -0.937401,-0.348252,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, -1,0,0,-0.448134,0.247342,0.047937, -1,0,0,-0.448134,0.247342,-0.047937, 0,1,0,0.039021,0.5,0.047937, - 0.15469,0.987963,0,0.193226,0.5,-0.047937, - -0.623331,0.781958,0,0.039021,0.5,-0.047937, - 0.15469,0.987963,0,0.193226,0.5,-0.047937, + 0.102986,0.994683,0,0.193226,0.5,-0.047937, + 0,1,0,0.039021,0.5,-0.047937, + 0.102986,0.994683,0,0.193226,0.5,-0.047937, 0,1,0,0.039021,0.5,0.047937, - 0.305656,0.952142,0,0.193226,0.5,0.047937, - 0.305656,0.952142,0,0.193226,0.5,0.047937, - 0.703967,0.710233,0,0.384905,0.438467,-0.047937, - 0.15469,0.987963,0,0.193226,0.5,-0.047937, - 0.703967,0.710233,0,0.384905,0.438467,-0.047937, - 0.305656,0.952142,0,0.193226,0.5,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.871946,0.489602,0,0.448134,0.247342,0.047937, - 0.871946,0.489602,0,0.448134,0.247342,-0.047937, - 0.871946,0.489602,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.871946,0.489602,0,0.448134,0.247342,-0.047937, - 0.703773,-0.710425,0,0.448134,0.184705,0.047937, - 0.922977,-0.384855,0,0.448134,0.184705,-0.047937, - 0.703773,-0.710425,0,0.448134,0.184705,0.047937, - 0.871946,0.489602,0,0.448134,0.247342,-0.047937, - 0.871946,0.489602,0,0.448134,0.247342,0.047937, + 0.205973,0.978558,0,0.193226,0.5,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.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.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.703773,-0.710425,0,0.448134,0.184705,0.047937, 0.703773,-0.710425,0,0.384905,0.122068,-0.047937, - 0.922977,-0.384855,0,0.448134,0.184705,-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,0,0,0.384905,0.122068,0.047937, + 0.703773,-0.710425,0,0.384905,0.122068,0.047937, 0.691249,0.722617,0,0.384905,0.122068,0.047937, - 0.919578,0.392907,0,0.448134,0.061584,-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.919578,0.392907,0,0.448134,0.061584,-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.919578,0.392907,0,0.448134,0.061584,0.047937, - 0.919578,0.392907,0,0.448134,0.061584,-0.047937, - 0.99893,0.046254,0,0.448134,-0.426425,0.047937, - 0.99893,0.046254,0,0.448134,-0.426425,-0.047937, - 0.99893,0.046254,0,0.448134,-0.426425,0.047937, - 0.919578,0.392907,0,0.448134,0.061584,-0.047937, - 0.919578,0.392907,0,0.448134,0.061584,0.047937, - 0.99893,0.046254,0,0.448134,-0.426425,-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.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.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, 0,-1,0,0.391859,-0.5,0.047937, - 0.442986,-0.896528,0,0.391859,-0.5,-0.047937, - 0,-1,0,0.391859,-0.5,0.047937, - 0.99893,0.046254,0,0.448134,-0.426425,-0.047937, - 0.99893,0.046254,0,0.448134,-0.426425,0.047937, - 0,-1,0,0.391859,-0.5,0.047937, - -0.767086,-0.641544,0,-0.3866,-0.5,-0.047937, - 0.442986,-0.896528,0,0.391859,-0.5,-0.047937, - -0.767086,-0.641544,0,-0.3866,-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.423353,-0.905965,0,-0.3866,-0.5,0.047937, - -0.93997,-0.341258,0,-0.448134,-0.426425,0.047937, + 0,-1,0,-0.3866,-0.5,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.423353,-0.905965,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.93997,-0.341258,0,-0.448134,-0.426425,0.047937, - -0.934347,0.356365,0,-0.448134,-0.426425,-0.047937, - -0.934347,0.356365,0,-0.448134,0.061584,0.047937, - -0.934347,0.356365,0,-0.448134,-0.426425,-0.047937, - -0.93997,-0.341258,0,-0.448134,-0.426425,0.047937, - -0.934347,0.356365,0,-0.448134,-0.426425,-0.047937, - -0.934347,0.356365,0,-0.448134,0.061584,0.047937, - -0.934347,0.356365,0,-0.448134,0.061584,-0.047937 + -0.767086,-0.641544,0,-0.448134,-0.426425,0.047937, + -0.767086,-0.641544,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, + -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 }; -static const struct gllist frame={GL_N3F_V3F,GL_TRIANGLES,204,data,NULL}; -const struct gllist *toast2=&frame; +static const struct gllist toast2_frame = { GL_N3F_V3F, GL_TRIANGLES, 204, toast2_data, 0 }; +const struct gllist *toast2 = &toast2_frame;