Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyOpengl without PyGame

I see that all tutorials about the pyopengl implements pygame, is posible use PyOpengl without pygame?. and if is so, then, is most faster without pygame or not?

like image 888
Cristian Avatar asked Mar 11 '26 02:03

Cristian


1 Answers

When using pygame with opengl, pygame will handle crossplatform: window creation, key input, sound output, image loading, etc..., but pyOpenGL does the actual rendering.

Pyglet has crossplatform window creation + opengl as well: http://www.pyglet.org/

I don't believe there's much of a speed difference, in using pygame vs other solutions. But the difference will be in how you do things, that will have the biggest effect. Using numpy vs not, calling expensive functions repeatedly, like: opengl's begin/end, etc.

like image 129
ninMonkey Avatar answered Mar 12 '26 17:03

ninMonkey



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!