Jump to content
  • Advertisement
Sign in to follow this  
ionstream

Newer OpenGL

This topic is 4909 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 have Dev-C++, which contains the headers and libs for OpenGL 1.2. But, for newer functionality, OpenGL.org suggested these: http://oss.sgi.com/projects/ogl-sample/sdk.html These are just headers with function prototypes and typedefs. Do I have to load opengl32.dll and use GetProcAddress for all of these functions (not that I'm complaining, just wondering)? Also, what does WGL stand for?

Share this post


Link to post
Share on other sites
Advertisement
No, you won't need to use GetProcAddress, you just link with opengl.dll. You only need to use GetProcAddress for video card vendor extensions.

WGL Stands for Windows openGL, it's a few Windows-only extensions for OpenGL(There's similar things for other OSes, like GLX for X11, AGL for OSX, etc)

Share this post


Link to post
Share on other sites
Wow, thanks for the quick reply!

How do I link opengl.dll, GCC can't link DLLs (unless I'm wrong).

And if I include glext.h and wglext.h, do I still need gl.h?

EDIT: Maybe it has something to do with the fact that MingW can't load DLLs with the fastcall keyword?

Share this post


Link to post
Share on other sites
Ah, thought you were using VC++, since you were talking about a DLL. You need to link with libopengl.a(or libopengl32.a, forgot which). Add -lopengl(if that doesn't work, try -lopengl32) as a linker option.

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!