/[gzz]/gzz/gfx/demo/opengl/texform.py
ViewVC logotype

Diff of /gzz/gfx/demo/opengl/texform.py

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

revision 1.1 by tjl, Fri Sep 20 10:27:02 2002 UTC revision 1.2 by tjl, Mon Sep 23 09:09:29 2002 UTC
# Line 2  Line 2 
2  # We're using VERY large textures for the PDF stuff and it's  # We're using VERY large textures for the PDF stuff and it's
3  # vital that we understand what they get stored as.  # vital that we understand what they get stored as.
4    
 from gzz.gfx.gl import GZZGL,GLSpans,Paper  
   
5  scroll = gzz.media.impl.PageImageScroll(None, gzz.mediaserver.Mediaserver.Id(  scroll = gzz.media.impl.PageImageScroll(None, gzz.mediaserver.Mediaserver.Id(
6  "0000000008000000E9573F43E00004CB42D4BEFEBAA27C20403F7D57693141B9E4D9A46329AC9C"))  "0000000008000000E9573F43E00004CB42D4BEFEBAA27C20403F7D57693141B9E4D9A46329AC9C"))
7    
# Line 21  def printTex(id): Line 19  def printTex(id):
19              "TEXTURE_LUMINANCE_SIZE",              "TEXTURE_LUMINANCE_SIZE",
20              "TEXTURE_INTENSITY_SIZE",              "TEXTURE_INTENSITY_SIZE",
21                          ):                          ):
22              print "p:\t",p,"\t", GZZGL.getGLTexLevelParameterFloat("TEXTURE_2D", id, i, p)              print "p:\t",p,"\t", GL.getGLTexLevelParameterFloat("TEXTURE_2D", id, i, p)
23          print "if:\t",GZZGL.getGLTokenString(          print "if:\t",GL.getGLTokenString(
24              int(GZZGL.getGLTexLevelParameterFloat("TEXTURE_2D", id, i,              int(GL.getGLTexLevelParameterFloat("TEXTURE_2D", id, i,
25                              "TEXTURE_INTERNAL_FORMAT")[0]))                              "TEXTURE_INTERNAL_FORMAT")[0]))
26    
27  print "PageImageScroll\n"  print "PageImageScroll\n"
# Line 74  for inter, exter, ncomps in ( Line 72  for inter, exter, ncomps in (
72          ("COMPRESSED_RGBA_S3TC_DXT3_EXT", "RGBA", "4"),          ("COMPRESSED_RGBA_S3TC_DXT3_EXT", "RGBA", "4"),
73          ("COMPRESSED_RGBA_S3TC_DXT5_EXT", "RGBA", "4"),          ("COMPRESSED_RGBA_S3TC_DXT5_EXT", "RGBA", "4"),
74              ):              ):
75      tex = GZZGL.createTexture()      tex = GL.createTexture()
76      print "Now: ",inter      print "Now: ",inter
77      tex.shade(64, 64, 0, int(ncomps), inter, exter, "noise", ())      tex.shade(64, 64, 0, int(ncomps), inter, exter, "noise", ())
78      printTex(tex.getTexId())      printTex(tex.getTexId())

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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