Search code examples
pythonapipygamepyglet

Difference between pyglet and pygame, in simple words?


There are many questions dealing with pyglet and pygame, but what I want to know is difference in theses two, in simple terms.

Not in technical terms, not experimental features and all that.

They are both libraries, both API, both for creation of games and multimedia apps, right?

Just in plain English, for someone like me, relative begginer, who has finished course about Python in Codecademy and read Head first Python book.


Solution

  • Pyglet is a wrapper around OpenGL, while Pygame is wrapper around SDL.

    OpenGL is primarily concerned with 3d rendering, while SDL

    is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D.