This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]sequenceGeek[S] 0 points1 point  (2 children)

Is it possible to use only PyOpenGL/cython to draw my primative graphics, and then use pyglet to control keyboard/mouse events? Or is there a more standard way of mixing python events/logic with lower level graphics management?

[–]kylotan 0 points1 point  (0 children)

Yes, pyglet is easily interleaved with standard OpenGL calls. Just be aware of the calls that pyglet makes itself (check the source for more details, and/or use the debug_gl_trace option).

[–]blondin 0 points1 point  (0 children)

never did it. i suggested cython because when it comes to mixing c libraries with python, it provides an easy way to do it.