Re: [PyOpenGL-Users] import all .GL constants
Brought to you by:
mcfletch
From: Greg E. <gre...@ca...> - 2007-02-06 22:26:08
|
k0wax wrote: > How can I import all constants from OpenGL.GL without importing all > functions? (from OpenGL.GL import *) Maybe something like g = globals() for name, value in OpenGL.GL.__dict__.items(): if name == name.upper(): g[name] = value -- Greg |