PyOpenGL double-buffered hardware surface

Clay Hobbs clay at lakeserv.net
Mon Oct 6 20:45:43 CEST 2008


On Sun, 2008-10-05 at 14:16 -0400, Mike C. Fletcher wrote:
> Clay Hobbs wrote:
> > How do I create a double-buffered hardware surface with PyOpenGL?  I
> > knew how to once, but forgot.
> >
> >   
> Depends on your GUI library, most of them have a flag-set that you pass 
> to the initializer of the OpenGL-holding widget.  If you're using 
> Pygame, see Pygame's display module.  If wxPython, see their GLcanvas 
> object.  If GLUT, see glutInitDisplayMode, etceteras.
> 
> Good luck,
> Mike
> 

I'm using wxPython.  My real problem is that everything flashes when it
moves.  I thought the way to fix this was to make a double-buffered
hardware surface, but I may be wrong.  Thank you for the help so far,

--Ratfink




More information about the Python-list mailing list