1 |
# A gl demo framework that can reload the given file at will. |
# A gl demo framework that can reload the given file at will. |
2 |
|
# |
3 |
|
# The target size for demos is 1024x768, since that is |
4 |
|
# a reasonable lowest common denominator. |
5 |
|
# |
6 |
|
# Our demo animations will also be in that size. |
7 |
|
# |
8 |
|
# The current screen size can be queried from the vobscene |
9 |
|
# and the user is free to resize the window; demos shouldn't. |
10 |
|
|
11 |
import sys |
import sys |
12 |
# Unfortunate debianisms XXX |
# Unfortunate debianisms XXX |
264 |
b,s = (Bindings(), Show()) |
b,s = (Bindings(), Show()) |
265 |
global w |
global w |
266 |
w = gfxapi.createWindow() |
w = gfxapi.createWindow() |
|
w.setLocation(0,0,600,600) |
|
267 |
loadScenes() |
loadScenes() |
268 |
scr = Screen(w, b, s) |
scr = Screen(w, b, s) |
269 |
AbstractUpdateManager.addWindow(scr) |
AbstractUpdateManager.addWindow(scr) |
270 |
AbstractUpdateManager.chg() |
AbstractUpdateManager.chg() |
271 |
|
w.setLocation(0,0,1024,768) |
272 |
|
|
273 |
|
|
274 |
scenefile = args[0] |
scenefile = args[0] |