Re: [PyOpenGL-Users] GL_VENDOR
Brought to you by:
mcfletch
From: Greg E. <gre...@ca...> - 2009-09-25 01:09:12
|
Mads Ipsen wrote: > How come glGetString(GL_VENDOR) returns None if I don't have an OpenGL > context? Because you don't *have* an OpenGL vendor until you have a context. Contexts belonging to different display devices can be using drivers from different vendors, so it's a property of the context rather than something global. Something it's easy to overlook about OpenGL is that it's really an object-oriented system, with almost all of the functions being methods of the context. But the API does a good job of hiding this by making the current context an implicit global parameter. -- Greg |