Changeset 2723
- Timestamp:
- Aug 15, 2008, 9:05:58 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
research/2008-rubik/colorcube/visu.c
r2677 r2723 71 71 72 72 #define F(x) ((x)*1.01 - 0.005) 73 #define CP glColor4f(x0,y0,z0,0.5); glVertex3f( y0,x0,z0)74 #define BP glColor3f(0.0,0.0,0.0); glVertex3f(F( y0),F(x0),F(z0))73 #define CP glColor4f(x0,y0,z0,0.5); glVertex3f(x0,y0,z0) 74 #define BP glColor3f(0.0,0.0,0.0); glVertex3f(F(x0),F(y0),F(z0)) 75 75 #define BLACK x0 = y0 = z0 = 0.0 76 76 #define RED x0 = 1.0; y0 = z0 = 0.0 … … 127 127 WHITE; BP; XRED; BP; 128 128 glEnd(); 129 glTranslatef(.5, .5, .4); 130 glColor4f(.5, .5, .5, .5); 131 glBegin(GL_QUADS); 132 glVertex3f(0.891063,-0.45388,0); 133 glVertex3f(0.0773943,0.151941,-0.985355); 134 glVertex3f(-0.891063,0.45388,0); 135 glVertex3f(-0.0773943,-0.151941,0.985355); 136 glEnd(); 129 137 glPopMatrix(); 130 138
Note: See TracChangeset
for help on using the changeset viewer.