/[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.3 by tjl, Sat Sep 21 07:35:17 2002 UTC revision 1.4 by tjl, Mon Sep 23 09:09:29 2002 UTC
# Line 5  fontsize = 40 Line 5  fontsize = 40
5  def getText(text, x = 0, y = 0, z = 2, w = 1, h = 1):  def getText(text, x = 0, y = 0, z = 2, w = 1, h = 1):
6      global font      global font
7      if font == None:      if font == None:
8          font = GZZGL.createFont("gfx/fonts/a010013l.pfb", fontsize)          font = GL.createFont("gfx/fonts/a010013l.pfb", fontsize)
9    
10      return GZZGL.createHorizText(font, text, x, y, z,  w,h)      return GLRen.createHorizText(font, text, x, y, z,  w,h)
11    
12  def putText(vs, cs1, text, color = None, x = 0, y = 0, z = 2, w = 1, h = 1):  def putText(vs, cs1, text, color = None, x = 0, y = 0, z = 2, w = 1, h = 1):
13      if color != None:          if color != None:    
# Line 30  def putText(vs, cs1, text, color = None, Line 30  def putText(vs, cs1, text, color = None,
30    
31    
32  def parstr(name):  def parstr(name):
33      return name + ": " + js(GZZGL.getGLFloat(name))      return name + ": " + js(GL.getGLFloat(name))
34    
35  class InfoScene:  class InfoScene:
36      def __init__(self):      def __init__(self):
# Line 42  class InfoScene: Line 42  class InfoScene:
42    
43          cs1 = vs.coords.affineCoordsys(0, "1", 10, 0, 0, 40, 0, 0, 40)          cs1 = vs.coords.affineCoordsys(0, "1", 10, 0, 0, 40, 0, 0, 40)
44    
45          vendor = GZZGL.getGLString("VENDOR")          vendor = GL.getGLString("VENDOR")
46          renderer = GZZGL.getGLString("RENDERER")          renderer = GL.getGLString("RENDERER")
47          version = GZZGL.getGLString("VERSION")          version = GL.getGLString("VERSION")
48          extensions = GZZGL.getGLString("EXTENSIONS")          extensions = GL.getGLString("EXTENSIONS")
49    
50          params = [ parstr(name) for name in [          params = [ parstr(name) for name in [
51              "MAX_LIGHTS",              "MAX_LIGHTS",

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

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