/[gzz]/gzz/gfx/librenderables/Renderables.cxx
ViewVC logotype

Diff of /gzz/gfx/librenderables/Renderables.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by tjl, Tue Nov 5 08:21:01 2002 UTC revision 1.11 by tjl, Tue Dec 10 12:45:52 2002 UTC
# Line 28  namespace Renderables { Line 28  namespace Renderables {
28      void setStandardCoordinates(Vec windowSize) {      void setStandardCoordinates(Vec windowSize) {
29          int w = (int)windowSize.x;          int w = (int)windowSize.x;
30          int h = (int)windowSize.y;          int h = (int)windowSize.y;
         DBG(dbg) << "Viewport\n";  
31          glViewport(0, 0, w, h);          glViewport(0, 0, w, h);
32          DBG(dbg) << "mmode\n";          GLERR
33          glMatrixMode(GL_PROJECTION);          glMatrixMode(GL_PROJECTION);
34          DBG(dbg) << "loadid\n";          GLERR
35          glLoadIdentity();          glLoadIdentity();
36          DBG(dbg) << "ortho\n";          GLERR
37          glOrtho(0, w, h, 0, 10000, -10000);          glOrtho(0, w, h, 0, 10000, -10000);
38          DBG(dbg) << "mm\n";          GLERR
39          glMatrixMode(GL_MODELVIEW);          glMatrixMode(GL_MODELVIEW);
40          DBG(dbg) << "loadid\n";          GLERR
41          glLoadIdentity();          glLoadIdentity();
42            GLERR
43            DBG(dbg) << "stdcoords done\n";
44    
45                    
46      }      }

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26