shithub: tinygl

Download patch

ref: 7963f82fc7a2c66fba20c97f5d5f3d756e250dd8
parent: c37ed9b9460b20478ec194536b82f6e754c56412
author: David <gek@katherine>
date: Mon Feb 15 16:22:43 EST 2021

Demo update

--- a/SDL_Examples/gears.c
+++ b/SDL_Examples/gears.c
@@ -86,7 +86,7 @@
 
     da = 2.0*M_PI / teeth / 4.0;
 
-    glShadeModel( GL_FLAT );
+    glShadeModel( GL_SMOOTH );
 
     glNormal3f( 0.0, 0.0, 1.0 );
 
@@ -172,7 +172,7 @@
     glEnd();
 
 
-    glShadeModel( GL_SMOOTH );
+    //glShadeModel( GL_SMOOTH );
 
     /* draw inside radius cylinder */
     glBegin( GL_QUAD_STRIP );
@@ -238,7 +238,7 @@
     //glDisable( GL_LIGHTING );
     glEnable( GL_LIGHT0 );
     glEnable( GL_DEPTH_TEST );
-    glShadeModel( GL_SMOOTH );
+    //glShadeModel( GL_SMOOTH );
 
     glEnable(GL_POLYGON_STIPPLE);
     glPolygonStipple(stipplepattern);