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

Re: [pygame] getting setup to use PyOpenGL for 2D



On 11/29/05, D. Gyimesi <dgyimesi@xxxxxxxxx> wrote:
> Now I sucked with SDL surfaces for my tank game I decided to write an
> intermediate graphic layer in OpenGL to make it easier to use for 2D.
> But it's just suxx. GL is really for 3D. In the past I used OpenGL to
> write some tiny screensaver for me and that's all my knowledge about GL.
> Not so much, but enough to feel that GL just suxx for 2D.

Actually, its rather good for 2D, and easier and more consistent than
SDL, once you grok the API. Its worth persevering, as once you get the
hang of OpenGL, you can do some amazing, fast effects which are simply
impossible with SDL.

This module:
 * http://metaplay.dyndns.org:8080/svn/sigl/SiGL/SiGL/texture.py
provides an easy interface for using textures, and parts of textures.

This module:
 * http://metaplay.dyndns.org:8080/svn/sigl/SiGL/SiGL/image.py
provides an easy way of loading images into the aforementioned
textures objects, and also, for loading multiple images into one
OpenGL texture, and providing each image as a seperate sub texture.

We used these modules (as part of the SiGL toolkit) to complete the
Torched Turf and Quido: Failed Experiment mini games.


-Sw.