On 7/6/2010 10:06 AM, Steven Clark wrote:
On Mon, Jul 5, 2010 at 9:08 PM, Steven Clark<[email protected]>  wrote:
Hi all-

I'm scratching my head over this one.
I have a working pyglet script that was written in a
non-object-oriented fashion (gfx_test_1.py).
I then attempted to "object-orientify" this script by converting it
into a class (gfx_test_2.py).

Both files should be rendering a square using a 3d perspective
projection and then placing some text over top of the screen using a
2d ortho projection.
 From the first script, I see the expected output. From the second
script, I see the text but not the 3d square underneath.

Any idea why? Is my use of decorators in second file incorrect?

Please take a look, the files are pretty short.

-Steven

PS: should my on_draw event return pyglet.event.EVENT_HANDLED (like
on_resize), or no?


I'll post the second file in the hopes that someone can see something
obviously wrong with it. Again, it's the same gl calls as in
gfx_test_1.py, but this time the GL_LINE_LOOP isn't visible...:

steven, read my previous post it explains why it doesn't work and also sent a fixed version!

--
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en.

Reply via email to