[PyOpenGL-Users] Enums from extensions
Brought to you by:
mcfletch
From: Allen B. <abi...@gm...> - 2006-10-18 21:01:52
|
I see in the documentation how I could import an extension and initialize it, but how do I get the enums from an extension? For example right now I would like to use GL_DEPTH_COMPONENT24 in my code but I don't know how to get that from PyOpenGL. Any ideas? Also, this may have been asked before, but are there any plans to make it easier to use the newer "extension" features of OpenGL? With the dynamic nature of python it seems like it would be possible to have PyOpenGL dynamically adapt it's interface to any given version of OpenGL on the fly. For example asking PyOpenGL to present the standard interface for OpenGL 2.0 it could go out and find any of the needed extensions and name them like they are in the 2.0 spec. This would be a great feature and would be unique to PyOpenGL since it can't be done in C or C++. Thanks, Allen |