/[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.2 by tjl, Mon Sep 23 09:09:29 2002 UTC revision 1.3 by tjl, Wed Oct 23 14:55:39 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    
5    from gfx.libutil.texture import printTex
6    
7  scroll = gzz.media.impl.PageImageScroll(None, gzz.mediaserver.Mediaserver.Id(  scroll = gzz.media.impl.PageImageScroll(None, gzz.mediaserver.Mediaserver.Id(
8  "0000000008000000E9573F43E00004CB42D4BEFEBAA27C20403F7D57693141B9E4D9A46329AC9C"))  "0000000008000000E9573F43E00004CB42D4BEFEBAA27C20403F7D57693141B9E4D9A46329AC9C"))
9    
10  rect = GLSpans.getRect(scroll.getCurrent())  rect = GLSpans.getRect(scroll.getCurrent())
11    
 def printTex(id):  
     for i in range(0,1):  
         for p in (  
             # "TEXTURE_WIDTH",  
             # "TEXTURE_HEIGHT",  
             "TEXTURE_RED_SIZE",  
             "TEXTURE_GREEN_SIZE",  
             "TEXTURE_BLUE_SIZE",  
             "TEXTURE_ALPHA_SIZE",  
             "TEXTURE_LUMINANCE_SIZE",  
             "TEXTURE_INTENSITY_SIZE",  
                         ):  
             print "p:\t",p,"\t", GL.getGLTexLevelParameterFloat("TEXTURE_2D", id, i, p)  
         print "if:\t",GL.getGLTokenString(  
             int(GL.getGLTexLevelParameterFloat("TEXTURE_2D", id, i,  
                             "TEXTURE_INTERNAL_FORMAT")[0]))  
   
12  print "PageImageScroll\n"  print "PageImageScroll\n"
13  printTex(rect.texId)  printTex(rect.texId)
14    

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

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