/[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.102 by humppake, Mon Oct 7 14:23:11 2002 UTC revision 1.103 by mudyc, Thu Oct 10 14:41:05 2002 UTC
# Line 409  rs = [ Line 409  rs = [
409    
410              for(Paper::Paper::iterator it = paper->begin(); it != paper->end(); ++it) {              for(Paper::Paper::iterator it = paper->begin(); it != paper->end(); ++it) {
411    
412                  DBG(dbg_paperquad) << "Pass\\n";                  // XXX
413                  (*it).setUp_VP(&lightParam);                  if (true) {
414                        DBG(dbg_paperquad) << "Pass\\n";
415                  DBG(dbg_paperquad) << "Going to multidraw\\n";                      GLERR
416                  GLERR                      (*it).setUp_VP(&lightParam);
417                  glMultiDrawElementsEXT(GL_QUAD_STRIP,                      
418                          counts, GL_UNSIGNED_INT, (const GLvoid **)indps, dice-1);                      DBG(dbg_paperquad) << "Going to multidraw\\n";
419                        GLERR
420                  DBG(dbg_paperquad) << "Teardown\\n";                      glMultiDrawElementsEXT(GL_QUAD_STRIP, counts,
421                  GLERR                         GL_UNSIGNED_INT, (const GLvoid **)indps, dice-1);
422                  (*it).tearDown_VP();                      DBG(dbg_paperquad) << "Teardown\\n";
423                  GLERR                      GLERR
424                  DBG(dbg_paperquad) << "Pass over\\n";                      (*it).tearDown_VP();
425                    
426                        GLERR
427                        DBG(dbg_paperquad) << "Pass over\\n";
428                    } else {
429                        DBG(dbg_paperquad) << "Pass\\n";
430                        GLERR
431                        (*it).setUp_explicit(&lightParam);
432                        
433                        DBG(dbg_paperquad) << "Going to draw elements\\n";
434                        GLERR
435                        for(int i=0; i<dice-1; i++) {
436                           if (*(counts+i)>0)
437                              glDrawElements(GL_QUAD_STRIP, *(counts+i),
438                                 GL_UNSIGNED_INT, (const GLvoid *) *(indps+i));
439                        }
440    
441                        DBG(dbg_paperquad) << "Teardown\\n";
442                        GLERR
443                        (*it).tearDown_explicit();
444                    
445                        GLERR
446                        DBG(dbg_paperquad) << "Pass over\\n";
447                    }
448              }              }
449    
450              glUnlockArraysEXT();              glUnlockArraysEXT();
# Line 571  rs = [ Line 593  rs = [
593    
594              for(Paper::Paper::iterator it = paper->begin(); it != paper->end(); ++it) {              for(Paper::Paper::iterator it = paper->begin(); it != paper->end(); ++it) {
595    
596                  DBG(dbg_paperquad) << "Pass\\n";                  // XXX
597                  (*it).setUp_VP(&lightParam);                  if (true) {
598                        DBG(dbg_paperquad) << "Pass\\n";
599                  DBG(dbg_paperquad) << "Going to multidraw\\n";                      (*it).setUp_VP(&lightParam);
600                  GLERR  
601                  glMultiDrawElementsEXT(GL_QUAD_STRIP,                      DBG(dbg_paperquad) << "Going to multidraw\\n";
602                          counts, GL_UNSIGNED_INT, (const GLvoid **)indps, dice-1);                      GLERR
603                        glMultiDrawElementsEXT(GL_QUAD_STRIP,
604                  DBG(dbg_paperquad) << "Teardown\\n";                          counts, GL_UNSIGNED_INT, (const GLvoid **)indps, dice-1);
605                  GLERR                      DBG(dbg_paperquad) << "Teardown\\n";
606                  (*it).tearDown_VP();                      GLERR
607                  GLERR                      (*it).tearDown_VP();
608                  DBG(dbg_paperquad) << "Pass over\\n";                      GLERR
609                        DBG(dbg_paperquad) << "Pass over\\n";
610                    } else {
611                        DBG(dbg_paperquad) << "Pass\\n";
612                        (*it).setUp_VP(&lightParam);
613                        (*it).setUp_explicit(&lightParam);
614                    
615    
616                        DBG(dbg_paperquad) << "Going to draw elements\\n";
617                        GLERR
618    
619                        for(int i=0; i<dice-1; i++) {
620                            if (*(counts+i)>0)
621                               glDrawElements(GL_QUAD_STRIP, *(counts+i),
622                               GL_UNSIGNED_INT, (const GLvoid *) *(indps+i));
623                        }
624    
625    
626                        DBG(dbg_paperquad) << "Teardown\\n";
627                        GLERR
628                        (*it).tearDown_explicit();
629                        GLERR
630                        DBG(dbg_paperquad) << "Pass over\\n";
631                    }
632              }              }
633    
634              glUnlockArraysEXT();              glUnlockArraysEXT();
# Line 1305  public class GLRen extends GL { Line 1349  public class GLRen extends GL {
1349      }      }
1350    
1351      public static gzz.vob.Vob createCallList(String s) {      public static gzz.vob.Vob createCallList(String s) {
1352            // XXX Convert to if (dbg)...
1353            //System.err.println(\"callist: \" + s );
1354          return createCallList(createDisplayList(s));          return createCallList(createDisplayList(s));
1355      }      }
1356      public static gzz.vob.Vob createCallListCoorded(String s) {      public static gzz.vob.Vob createCallListCoorded(String s) {
1357            // XXX Convert to if (dbg)...
1358            //System.err.println(\"callist: \" + s );
1359          return createCallListCoorded(createDisplayList(s));          return createCallListCoorded(createDisplayList(s));
1360      }      }
1361    

Legend:
Removed from v.1.102  
changed lines
  Added in v.1.103

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