Sign in to follow this  

glWindowPos2i not found on GL 2.1

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