The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers


OpenGL Headline News

Use Pygame GUIs with OpenGL displays

Lamina is a tool to facilitate displaying SDL raster displays in OpenGL displays. A Lamina object (there are a couple of different flavors… read the docstrings) has a surface attribute, and a display method.  Write to the surface attribute using any old pygame draw routine, or pass the surface attribute to your GUI library, refresh() it, and then call the display method from your OpenGL display code. This version uses partial texture updates, only updating the areas within a ‘dirty rectangle’ list.  Pygame sprite functionality and GUIs return ‘dirty rectangle’ lists as part of their functionality.  These partial updates are faster than complete regenerations, and the demo folder includes a comparitive timing script. This release also adds a demo ( with no ‘extra’ dependencies, no dependencies beyond python standard dist, pyopengl, and pygame.  You can try it out without installing a GUI.

Jul 25, 2007 | Read article... | Permalink

Read more OpenGL news

Vulkan DevU
Khronos at GDC 2017