Jump to content
  • Advertisement
Sign in to follow this  
andromeda83

glWindowPos2i not found on GL 2.1

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

Hello,
According to the documentation, glWindowPos2i should be provided after GL 1.4. However,
I am on a Linux with GL 2.1(I get this number from glGetString(GL_VERSION)). However, g++ complained glWindowPos2i was not declared in scope. What would be wrong? Thanks

Share this post


Link to post
Share on other sites
Advertisement
Although it's a core function, it's still declared in glext.h. So you have to handle it like any other extension functions. Or use the "glee"

Share this post


Link to post
Share on other sites
You also need to load the function pointer. See this forum's FAQ, question 5 (theory applies to Linux also), or what szecs said and use some extension loader like GLEE.

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!