Jump to content
  • Advertisement
Sign in to follow this  
ehsan2004

OpenGL More OpenGL Game Programming

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

Hi there I want to compile the sample codes of the book *More OpenGL Game Programming*. I have added glee.lib file to the lib folder of VC++.net. Unfortunately, glee does not work correctly. My compiler cannot find the new OpenGL functions. As an example i cannot use from the function glBindBuffer() in my program. How can i solve this problem? -Ehsan-

Share this post


Link to post
Share on other sites
Advertisement
Assuming you can compile and you are getting a linker error you still need to include the static lib in your VC project file.

For VC7.1 (VC8 should be simular)
In your project settings goto Linker->Input->Additional Dependicies and make sure your library is named there.

Share this post


Link to post
Share on other sites
As an example, here's one of the error reports:
... : error C3861: 'glBindBuffer': identifier not found, even with argument-dependent lookup
It's not a linking error. I have downloaded the source code of the book More OpenGL Game Programming from its web site and have compiled it. So i shouldn't recieve any error. Isn't it?
-Ehsan-

Share this post


Link to post
Share on other sites
I'm FAIRLY sure that this has to do with vertex buffer objects (vbos), which is an extension. if the code is taken directly from the book, (dont know if it is), then they probably grab the extension in there somewhere, or maybe if the book has a framework with it that gets extensions and manages windows for you etc.

yes, you can find this function in glext.h:

GLAPI void APIENTRY glBindBuffer (GLenum, GLuint);

you'll have to get a pointer to the function in your gfx driver

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!