invisible
diff src/tesquad.cc @ 23:b50ad2711f5f
fixed fov aspect projection et c, added shaders
todo: segmentation
author | Eleni Maria Stea <eleni@mutantstargoat.com> |
---|---|
date | Sat, 16 Nov 2013 23:29:15 +0200 |
parents | f756fc9fdd3e |
children |
line diff
1.1 --- a/src/tesquad.cc Sun Nov 10 14:32:29 2013 +0200 1.2 +++ b/src/tesquad.cc Sat Nov 16 23:29:15 2013 +0200 1.3 @@ -3,11 +3,11 @@ 1.4 1.5 void draw_tess_quad(float x, float y, float w, float h, int usub, int vsub, bool ortho) 1.6 { 1.7 + glPushAttrib(GL_ENABLE_BIT); 1.8 + glDisable(GL_DEPTH_TEST); 1.9 + glDisable(GL_LIGHTING); 1.10 + 1.11 if(ortho) { 1.12 - glPushAttrib(GL_ENABLE_BIT); 1.13 - glDisable(GL_DEPTH_TEST); 1.14 - glDisable(GL_LIGHTING); 1.15 - 1.16 glMatrixMode(GL_PROJECTION); 1.17 glPushMatrix(); 1.18 glLoadIdentity(); 1.19 @@ -41,6 +41,6 @@ 1.20 1.21 if(ortho) { 1.22 glPopMatrix(); 1.23 - glPopAttrib(); 1.24 } 1.25 + glPopAttrib(); 1.26 }