Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

dampe64

Can Visual C++ compile OpenGL?

This topic is 5635 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

Advertisement
I think it can. I''m using the complier too for my C++ works. I''m just learning and my next stop is OpenGL but I think it may be able to compile it.

There''''s no town drunk here, we all take turns.

Share this post


Link to post
Share on other sites
OpenGL is essentially a document (language specification) describing a bunch of functions, their names and parameters and what they should do. As such, ''OpenGL'' cannot be compiled.

However, if you mean ''Can I link to / use OpenGL from in MSVC,'' then very much yes. Just set your project settings to link to opengl32.lib, glu32.lib, and possibly glaux.lib.

Superpig
- saving pigs from untimely fates, and when he''s not doing that, runs The Binary Refinery.

Share this post


Link to post
Share on other sites
Strictly speaking, the static library files (the .lib ones) are compiled as part of your code.

It is important to note that these .lib files cannot compose a working program independantly of the shell that you create for them when writing your rendering code. Static library files, as well as dynamic link libraries were designed to enable code sharing as these do.

Share this post


Link to post
Share on other sites

  • 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!