Jump to content
  • Advertisement
Sign in to follow this  
silvermace

OpenGL Proposal: Upgrading OpenGL libraries for windows

This topic is 4972 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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:
PFNGLACTIVETEXTUREARBPROC glug_glActiveTextureARB;

void glInitialise(void)
{
   loadExtensionList();
   checkExtensionsLoaded();
}

DLLEXPORT GLvoid glActiveTexture( GLenum target ) {
   glug_glActiveTextureARB(target);
}


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

Share this post


Link to post
Share on other sites
Advertisement
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]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!