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: |
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): |
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", |