From: StApostol <sta...@gm...> - 2008-09-27 21:55:21
|
> I suppose we can determine the version automatically, by checking what the context says. Note that this can be somewhat tricky. For example, most Linux drivers report versions like "1.4 (Mesa 2.1)" - first is GLX, followed by OpenGL. > gleLoadFunctions(GLint majorVersion, GLint minorVersion); > This will load all functions and extensions up to the given GL version. What about non-core functions? Things like ARB, EXT, etc. > > By the way, why not layer GLE on top of GLFW? > What exactly do you mean by layering GLE on top of GLFW? Do you mean that GLE should be called by GLFW? I don't think that's such a good idea. The other way round: have GLE call glfwGetAddress to simplify things. Note that this should work even if the context was *not* created through GLFW. |