Jul 25, 2007
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 (pyg_lam.py) with no ‘extra’ dependencies, no dependencies beyond python standard dist, pyopengl, and pygame. You can try it out without installing a GUI.
Category: Developers •
Posted on 07/25 at 05:43 PM
Leave a comment
Previous entry: 3D graphics hardware IP uses OCP bus interface