Re: [PyOpenGL-Users] glDrawRangeElements, GL_MAX_ELEMENTS_VERTICES& GL_MAX_ELEMENTS_INDICES
Brought to you by:
mcfletch
From: Andrew S. <as...@in...> - 2003-12-15 02:21:16
|
> Andrew Straw wrote: > >> Check this thread out: >> >> http://sourceforge.net/mailarchive/message.php?msg_id=6131991 >> >> (Note the continuations seem to be a month later!) >> >> I think we should implement a Python runtime check for OpenGL version >> number and modify the namespace accordingly. Too bad I don't have >> time for the next several months, at least! > > Hmm, I think that would require that the system used to build the binary > have up to 1.3/1.4 available in it's library, wouldn't it? The wrappers > are generated for each version of OpenGL present in the platform's > OpenGL library. Without those libraries I can't see how to compile the > wrappers. I may be missing something, though. I think you're mainly right, although with dynamic library access using something like ctypes, it should be possible using just a header file, not necessarily the lib. (Although with ctypes, as you pointed out before, this may be a bit slow.) I guess this mimcs the present situation of building on a platform with 1.2 binaries but running on a 1.1 platform. We really should implement some sort of runtime version check to limit the namespace, at least, because it's rather confusing to have a bunch of 1.2 symbols available when your system is only 1.1. |