PFNGLACTIVETEXTUREARBPROC glug_glActiveTextureARB;
void glInitialise(void)
{
loadExtensionList();
checkExtensionsLoaded();
}
DLLEXPORT GLvoid glActiveTexture( GLenum target ) {
glug_glActiveTextureARB(target);
}
Proposal: Upgrading OpenGL libraries for windows
i was looking at quake2's source code and realise something...
we could infact emulate an opengl32.lib file for windows to bring opengl into 1.5 and whatever 2.0 allows
basically, in the "new" lib, we would wrap the functions around their actuall instances
glug -> GL-UP-GRADE
example:
the thing about this is, if they are all named so they look like part of the core lib we could get away with it, and it wouldnt affect performace becase if all the calls are wrapped like that, a decent compiler will optimize the redundant wrap call.
EDIT: we could even include the 1.1 core functions and totaly remove the shi* original 1.1 lib that comes with the PSDK.
possible?
your thoughts and comments.
-Dan
Isn't this to some extent what the Mesa project is doing? Obviously Mesa is more than that, but I recall a couple of windows programs using Mesa for OpenGL because of this sort of thing (Milkshape 3d was one).
Edit: Ah, I just realised you weren't talking about dlls
[Edited by - evolutional on December 6, 2004 7:29:32 AM]
Edit: Ah, I just realised you weren't talking about dlls
[Edited by - evolutional on December 6, 2004 7:29:32 AM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement