[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Advice on Game Engine




On May 3, 2005, at 9:55 PM, Jasper wrote:

Kris Schnee wrote:
[snip]


Is there a good reason to use OpenGL with Pygame? If so, what's a good way to draw menus and buttons in that mode? Would it be better to just use Pygame itself?


OpenGL offers a 2D game smooth scrolling, zooming and rotation. There are several frameworks like Pyui (which is ok, but defunct) built on top of OpenGL+Pygame, but you can also combine it with something like wxPython if you don't need much control over your widgets.

You can't combine ANY GUI toolkit (wxPython, GTK, etc.) with pygame in a cross-platform fashion, because SDL sacrifices that feature for platform independence and ease of development. If you're using wxPython, you're going to have to toss pygame, or run them in separate processes (threads is not good enough cross-platform).


-bob