/[gzz]/gzz/gfx/libpaper/Paper.cxx
ViewVC logotype

Diff of /gzz/gfx/libpaper/Paper.cxx

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

revision 1.7 by jvk, Tue Sep 10 14:56:00 2002 UTC revision 1.8 by jvk, Tue Sep 10 19:19:29 2002 UTC
# Line 98  namespace Paper { Line 98  namespace Paper {
98          // The following code computes T A^-1 E^-1 A and stores it          // The following code computes T A^-1 E^-1 A and stores it
99          // in place of T in the constant registers          // in place of T in the constant registers
100    
101    #ifdef GL_VERTEX_PROGRAM_NV
102          GLuint base = unit * 4 + tex_addr_base;          GLuint base = unit * 4 + tex_addr_base;
103    
104          glMatrixMode(GL_MATRIX0_NV);          glMatrixMode(GL_MATRIX0_NV);
# Line 136  namespace Paper { Line 137  namespace Paper {
137          glTrackMatrixNV(GL_VERTEX_PROGRAM_NV, base, GL_NONE, GL_IDENTITY_NV);          glTrackMatrixNV(GL_VERTEX_PROGRAM_NV, base, GL_NONE, GL_IDENTITY_NV);
138                    
139          glMatrixMode(GL_MODELVIEW);          glMatrixMode(GL_MODELVIEW);
140    #endif
141        }        }
142        
143    
# Line 272  namespace Paper { Line 273  namespace Paper {
273          if (texgenvp.getSource().length() == 0)          if (texgenvp.getSource().length() == 0)
274            loadVP();            loadVP();
275    
276    #ifdef GL_VERTEX_PROGRAM_NV
277          /* Track the product of modelview and projection matrices */          /* Track the product of modelview and projection matrices */
278          glTrackMatrixNV(GL_VERTEX_PROGRAM_NV, m_p_addr, GL_MODELVIEW_PROJECTION_NV, GL_IDENTITY_NV);          glTrackMatrixNV(GL_VERTEX_PROGRAM_NV, m_p_addr, GL_MODELVIEW_PROJECTION_NV, GL_IDENTITY_NV);
279    #endif
280    
281          /* Set up VP TexGen parameters for each texture unit */          /* Set up VP TexGen parameters for each texture unit */
282          int unit = 0;          int unit = 0;

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

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