15 |
_realwin.setLocation(0, 0, 600, 600) |
_realwin.setLocation(0, 0, 600, 600) |
16 |
|
|
17 |
if gzz.client.GraphicsAPI.getInstance().getTypeString() == "gl": |
if gzz.client.GraphicsAPI.getInstance().getTypeString() == "gl": |
18 |
win = gzz.client.GraphicsAPI.getInstance().createStableOffscreen(500, 500) |
from gzz.gfx.gl import GL |
19 |
from gzz.gfx.gl import GL, GLCache, GLRen |
if GL.workaroundStupidBuggyAtiDrivers: |
20 |
_buf = GL.createByteVector(500*500*3) |
# Sorry, ATI doesn't let us use pbuffers on R300 except in FireGL. |
21 |
_drawbufvs = _realwin.createVobScene() |
# Because of that, don't put another window in front when using |
22 |
_drawbufvs.map.put(SolidBgVob(Color(0, 0, 0.2))) |
# this. |
23 |
_drawbufvs.map.put(GLCache.getCallList(""" |
win = _realwin |
24 |
Disable TEXTURE_2D |
else: |
25 |
Color 1 1 1 1 |
win = gzz.client.GraphicsAPI.getInstance().createStableOffscreen(500, 500) |
26 |
""")) |
from gzz.gfx.gl import GL, GLCache, GLRen |
27 |
cs = _drawbufvs.translateCS(0, "tr", 0, 501) |
_buf = GL.createByteVector(500*500*3) |
28 |
_drawbufvs.map.put( |
_drawbufvs = _realwin.createVobScene() |
29 |
GLRen.createDrawPixels( |
_drawbufvs.map.put(SolidBgVob(Color(0, 0, 0.2))) |
30 |
500, 500, |
_drawbufvs.map.put(GLCache.getCallList(""" |
31 |
"RGB", "UNSIGNED_BYTE", _buf), |
Disable TEXTURE_2D |
32 |
cs) |
Color 1 1 1 1 |
33 |
|
""")) |
34 |
|
cs = _drawbufvs.translateCS(0, "tr", 0, 501) |
35 |
|
_drawbufvs.map.put( |
36 |
|
GLRen.createDrawPixels( |
37 |
|
500, 500, |
38 |
|
"RGB", "UNSIGNED_BYTE", _buf), |
39 |
|
cs) |
40 |
else: |
else: |
41 |
win = _realwin |
win = _realwin |
42 |
|
|