RE: [PyOpenGL-Users] Code for ball and stick model
Brought to you by:
mcfletch
|
From: Mike C. F. <mcf...@ro...> - 2001-11-30 00:16:52
|
Numbered according to your questions...
1) On my machine (Win2K using the GLUT context), the window does update when
it is damaged. Which context subclass are you using? The code for this is
different under each context subclass because of the need to interface with
the user interface library's notification of damage.
2) You can find a demo in OpenGLContext/tests/saveimage.py for how you would
save images to a file (using glReadPixels then converting to a PIL image for
saving).
Have fun,
Mike
-----Original Message-----
From: pyo...@li...
[mailto:pyo...@li...]On Behalf Of Craig H
. Anderson
Sent: Thursday, November 29, 2001 13:03
To: pyo...@li...
Subject: [PyOpenGL-Users] Code for ball and stick model
...
A couple of questions.
1) gl02_testUnitCylinder.py displays as expected, but the window
doesn't refresh if damaged. What am I missing to get the window
to refresh?
2) How would I dump the window image to a file?
...
|