vrchess
diff src/vr/vr_null.c @ 5:8b7da5ab814e
vr wrapper in progress
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 20 Aug 2014 16:34:43 +0300 |
parents | e6948e131526 |
children | bd8202d6d28d |
line diff
1.1 --- a/src/vr/vr_null.c Wed Aug 20 06:33:43 2014 +0300 1.2 +++ b/src/vr/vr_null.c Wed Aug 20 16:34:43 2014 +0300 1.3 @@ -16,38 +16,6 @@ 1.4 return 0; 1.5 } 1.6 1.7 -static void draw(unsigned int fbtex, float u, float maxu, float v, float maxv) 1.8 -{ 1.9 - glPushAttrib(GL_ENABLE_BIT | GL_TRANSFORM_BIT); 1.10 - 1.11 - glDisable(GL_LIGHTING); 1.12 - glDisable(GL_DEPTH_TEST); 1.13 - glDisable(GL_FOG); 1.14 - glDisable(GL_CULL_FACE); 1.15 - 1.16 - glMatrixMode(GL_MODELVIEW); 1.17 - glLoadIdentity(); 1.18 - glMatrixMode(GL_PROJECTION); 1.19 - glLoadIdentity(); 1.20 - 1.21 - glBegin(GL_QUADS); 1.22 - glTexCoord2f(u, v); 1.23 - glVertex2f(-1, -1); 1.24 - glTexCoord2f((u + maxu) / 2, v); 1.25 - glVertex2f(1, -1); 1.26 - glTexCoord2f((u + maxu) / 2, maxv); 1.27 - glVertex2f(1, 1); 1.28 - glTexCoord2f(u, maxv); 1.29 - glVertex2f(-1, 1); 1.30 - glEnd(); 1.31 - 1.32 - glPopMatrix(); 1.33 - glMatrixMode(GL_MODELVIEW); 1.34 - glPopMatrix(); 1.35 - 1.36 - glPopAttrib(); 1.37 -} 1.38 - 1.39 struct vr_module *vr_module_null(void) 1.40 { 1.41 static struct vr_module m; 1.42 @@ -55,7 +23,6 @@ 1.43 if(!m.init) { 1.44 m.name = "null"; 1.45 m.init = init; 1.46 - m.draw = draw; 1.47 } 1.48 return &m; 1.49 }