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

Re: [pygame] Extending OpenGL support in Pygame



On 05.04.2012 18:00, Santiago Romero wrote:
> YES! Very much! In my personal opinion, the lack of simple drop-in
> OpenGL support that works the same way as the existing Surface class is
> the biggest weakness of pygame.

I don't have knowledge about OpenGL but if I remember correctly, textures (because with opengl your sprites need to be "faces" with textures, simulating the sprite itself) must be power of 2 in size (16x16, 32x32, 64x64, 128x128...).

This introduces a "handicap" in the sprite sizes that maybe can't allow "simple drop-in" Surface-class replacement...

But, yes, I also agree that the advantages are very important, specially that GPU rendering would allow really hi-res (hdready and fullhd games, even with multiple scrolls!) even in limited hardware (CPU power systems) such as tablets, and so on.

--
Santiago Romero
Ubuntu GNU/Linux
http://www.sromero.org


Hi

If I remember correctly, 'lamina' is a module that allows you to render any 2d pygame graphics in opengl.

http://sourceforge.net/projects/pduel/files/lamina/

This might be of interest.


~DR0ID