Search code examples
python-3.xpygamepyopengl

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?


Solution

  • 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.