32static GLuint make_object(
void )
80 glFrustum( -1.0, 1.0, -1.0, 1.0, 5.0, 15.0 );
134 else if (Yrot>=360.0) {
138 else if (Zrot>=360.0) {
147 Object = make_object();
154 Xrot = Yrot = Zrot = 0.0;
160int main(
int argc,
char *argv[] )
162 return ui_loop(argc, argv,
"spin");
void glColor3f(float x, float y, float z)
void glVertex3f(float x, float y, float z)
void glFrustum(double left, double right, double bottom, double top, double near, double far)
unsigned int glGenLists(int range)
void glCallList(unsigned int list)
void glClearColor(float r, float g, float b, float a)
void glShadeModel(int mode)
void glViewport(int x, int y, int width, int height)
void glNewList(unsigned int list, int mode)
void glMatrixMode(int mode)
void glRotatef(float angle, float x, float y, float z)
void glTranslatef(float x, float y, float z)
void glCullFace(int mode)
void glLoadIdentity(void)
void glScalef(float x, float y, float z)
int ui_loop(int argc, char **argv, const char *name)
GLenum key(int k, GLenum mask)
int main(int argc, char *argv[])
void reshape(int width, int height)