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

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

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

revision 1.9 by jvk, Tue Oct 8 15:12:29 2002 UTC revision 1.10 by tjl, Sat Dec 14 08:11:34 2002 UTC
# Line 13  class InfoScene: Line 13  class InfoScene:
13    
14          size = vs.getSize()          size = vs.getSize()
15    
16          colchars = 60          colchars = 70
17          scale = min(size.width*1.0, size.height*4.0/3) / colchars          scale = min(size.width*1.0, size.height*4.0/3) / colchars
18    
19          cs1 = vs.coords.affineCoordsys(0, 10, 0, 0, scale, 0, 0, scale)          cs1 = vs.coords.affineCoordsys(0, 10, 0, 0, scale, 0, 0, scale)
# Line 113  class InfoScene: Line 113  class InfoScene:
113              "MAX_TRACK_MATRIX_STACK_DEPTH_NV",              "MAX_TRACK_MATRIX_STACK_DEPTH_NV",
114              #endif              #endif
115                            
116              #ifdef GL_MAX_MAP_TESSELLATION_NV              "MAX_VERTEX_ATTRIBS_ARB",
117              "MAX_MAP_TESSELLATION_NV",              "MAX_PROGRAM_MATRICES_ARB",
118              "MAX_RATIONAL_EVAL_ORDER_NV",              "MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB",
119    
120              ]]              ]]
121    
122            params.append("");
123            params.append("vpARB");
124            params.extend( [ name + ": "+ js(GL.getGLProgram("VERTEX_PROGRAM_ARB", name))
125             for name in [
126                "MAX_PROGRAM_INSTRUCTIONS_ARB",
127                "MAX_PROGRAM_TEMPORARIES_ARB",
128                "MAX_PROGRAM_PARAMETERS_ARB",
129                "MAX_PROGRAM_ATTRIBS_ARB",
130                "MAX_PROGRAM_ADDRESS_REGISTERS_ARB",
131    
132                "MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB",
133                "MAX_PROGRAM_NATIVE_TEMPORARIES_ARB",
134                "MAX_PROGRAM_NATIVE_PARAMETERS_ARB",
135                "MAX_PROGRAM_NATIVE_ATTRIBS_ARB",
136                "MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB",
137    
138                "MAX_PROGRAM_LOCAL_PARAMETERS_ARB",
139                "MAX_PROGRAM_ENV_PARAMETERS_ARB",
140                ]])
141    
142                                        
143          # double size text          # double size text
144          putText(vs, cs1, vendor, color=(0,0,0), h=2, y = 2)          putText(vs, cs1, vendor, color=(0,0,0), h=2, y = 2)
# Line 126  class InfoScene: Line 147  class InfoScene:
147    
148          foo = params          foo = params
149          i = 0          i = 0
150          cols = 3          cols = 4
151          lines = (len(foo)+cols-1) / cols          lines = (len(foo)+cols-1) / cols
152          for x in range(0, cols):          for x in range(0, cols):
153              for y in range(0, lines):              for y in range(0, lines):

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

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