/[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.31 by jvk, Mon Sep 16 13:59:42 2002 UTC revision 1.32 by jvk, Mon Sep 16 14:18:01 2002 UTC
# Line 752  rs = [ Line 752  rs = [
752    
753          glBindTexture(GL_TEXTURE_2D, texid);          glBindTexture(GL_TEXTURE_2D, texid);
754          glEnable(GL_TEXTURE_2D);          glEnable(GL_TEXTURE_2D);
755            //glDisable(GL_REGISTER_COMBINERS_NV);
756    
757          glBegin(GL_QUADS);          glBegin(GL_QUADS);
758          for (int i = 0; i < 4; i++) {          for (int i = 0; i < 4; i++) {
# Line 771  rs = [ Line 771  rs = [
771    
772              float w = (i & 2) ? wy : wx;              float w = (i & 2) ? wy : wx;
773    
774              glTexCoord3f(tex1.x * w, tex1.y * w, w);              glTexCoord4f(tex1.x * w, tex1.y * w, 0, w);
775              coords1.vertex(sides[i][2]);              coords1.vertex(sides[i][2]);
776    
777              glTexCoord3f(tex0.x * w, tex0.y * w, w);              glTexCoord4f(tex0.x * w, tex0.y * w, 0, w);
778              coords1.vertex(sides[i][3]);              coords1.vertex(sides[i][3]);
779    
780              //cout << tex0 << coords1.transform(sides[i][0]) << "\\n";              //cout << tex0 << coords1.transform(sides[i][0]) << "\\n";
# Line 787  rs = [ Line 787  rs = [
787    
788          glPopAttrib();          glPopAttrib();
789          GLERR;          GLERR;
790    
791      """,      """,
792  }    ,  }    ,
793    

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32

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