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

Re: [pygame] Adding Opengl to an existing app



Bram Cymet wrote:
Is there anyway that I can
start with a regular pygame surface then make it an opengl surface when
I need it to be and then switch it back when I am done with OpenGL.

You might like to look at my Albow gui library. I've recently
added OpenGL support that lets you use both 2D widgets and
3D drawing areas at the same time. The 2D widgets are standard
pygame surfaces that you can use all the usual drawing techniques
on.

http://www.cosc.canterbury.ac.nz/greg.ewing/python/Albow/

Behind the scenes, 2D drawing is done to offscreen surfaces that
are then copied to the OpenGL window using glDrawPixels().

--
Greg