Re: [PyOpenGL-Users] 2d sprite engine performance.
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@ro...> - 2005-04-06 19:58:53
|
Erik Johnson wrote: >On Tue, 5 Apr 2005 10:00:19 -0700, "Andrew Straw" said: >... > > >> But, IF python itself if the >>problem (or to test if this is so), I suggest re-coding your main loop >>using Pyrex -- you'll be able to call OpenGL directly from the C level >>using a syntax that seems very familar. :) >> >> > >If I were to use Pyrex to call the C level OpenGL libs, would I be able >to work with the same window with PyOpenGL? Or would it be exclusively >one or the other? > > You should be able to freely mix them as long as you're loading the same OpenGL library from both, in the end PyRex is just C code, just like PyOpenGL. Only thing to keep in mind is that it likely doesn't handle Numpy arrays in quite the same way. >Would I need to use the C level SDL calls as well for creating my >window? Or could I still use PyGame to do the setup for OpenGL called >from Pyrex? > > Generally speaking you should be able to mix and match with no special considerations, OpenGL is just a big state machine where you trigger events with method calls. HTH, Mike ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |