/[gzz]/gzz/gfx/librenderables/renderables.py
ViewVC logotype

Diff of /gzz/gfx/librenderables/renderables.py

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

revision 1.172 by tjl, Mon Jan 27 17:26:04 2003 UTC revision 1.173 by tjl, Mon Jan 27 19:49:00 2003 UTC
# Line 752  rs = [ Line 752  rs = [
752              DBG(dbg_paperquad) << "Dice: " << dice <<"\\n";              DBG(dbg_paperquad) << "Dice: " << dice <<"\\n";
753    
754              float *vertices = new float[dice * dice * 5];              float *vertices = new float[dice * dice * 5];
755              int *indices = new int[(dice-1) * (2*dice)];  
756                int *indices = new int[(dice) * (2*dice)];
757    
758              #define VERTICES3(x, y, z) vertices[((x)*dice + (y))*5 + (z)]              #define VERTICES3(x, y, z) vertices[((x)*dice + (y))*5 + (z)]
759              #define VERTICES2(x, y)    vertices[((x)*dice + (y))*5]              #define VERTICES2(x, y)    vertices[((x)*dice + (y))*5]
# Line 801  rs = [ Line 802  rs = [
802              if(flags & PAPERQUAD_USE_VERTEX_PROGRAM) {              if(flags & PAPERQUAD_USE_VERTEX_PROGRAM) {
803                  glPushClientAttrib(GL_CLIENT_VERTEX_ARRAY_BIT);                  glPushClientAttrib(GL_CLIENT_VERTEX_ARRAY_BIT);
804                  glInterleavedArrays(GL_T2F_V3F, 5*sizeof(float), vertices);                  glInterleavedArrays(GL_T2F_V3F, 5*sizeof(float), vertices);
805                  glLockArraysEXT(0, dice*dice*5);                  glLockArraysEXT(0, dice*dice);
806    
807                  for(Paper::Paper::iterator it = paper->begin(); it != paper->end(); ++it) {                  for(Paper::Paper::iterator it = paper->begin(); it != paper->end(); ++it) {
808    

Legend:
Removed from v.1.172  
changed lines
  Added in v.1.173

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