X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=progs%2Ftest-shapes-gles1%2Ftest-shapes-gles1.c;h=e0bdd0186658710959578d858294a24fbb457f37;hb=85fe5ac7b6efe580eab22820aa740a4b2dcafb0c;hp=ab26593d1809e436dee48ad033ee77e192968565;hpb=19242860f0cd6d3f2c3e32e87e15fe5e1151d072;p=freeglut diff --git a/progs/test-shapes-gles1/test-shapes-gles1.c b/progs/test-shapes-gles1/test-shapes-gles1.c index ab26593..e0bdd01 100644 --- a/progs/test-shapes-gles1/test-shapes-gles1.c +++ b/progs/test-shapes-gles1/test-shapes-gles1.c @@ -100,6 +100,10 @@ static void drawSolidCone(void) { glutSolidCone(orad,orad,slices, static void drawWireCone(void) { glutWireCone(orad,orad,slices,stacks); } /* orad doubles as size input */ static void drawSolidCylinder(void) { glutSolidCylinder(orad,orad,slices,stacks); } /* orad doubles as size input */ static void drawWireCylinder(void) { glutWireCylinder(orad,orad,slices,stacks); } /* orad doubles as size input */ +static void drawSolidTeapot(void) +{ glFrontFace(GL_CW); glutSolidTeapot(orad); glFrontFace(GL_CCW); /* orad doubles as size input */} +static void drawWireTeapot(void) +{ glFrontFace(GL_CW); glutWireTeapot(orad); glFrontFace(GL_CCW); /* orad doubles as size input */} /* * This structure defines an entry in our function-table. @@ -121,7 +125,7 @@ static const entry table [] = ENTRY (RhombicDodecahedron), ENTRY (Icosahedron), ENTRY (SierpinskiSponge), - /* ENTRY (Teapot), */ + ENTRY (Teapot), ENTRY (Torus), ENTRY (Sphere), ENTRY (Cone), @@ -322,7 +326,7 @@ main(int argc, char *argv[]) glutSpecialFunc(special); glutIdleFunc(idle); glutMouseFunc(onMouseClick); - glutFixMyNameInitContextFunc(init_context); + glutInitContextFunc(init_context); glutSetOption ( GLUT_ACTION_ON_WINDOW_CLOSE, GLUT_ACTION_CONTINUE_EXECUTION ) ;