Jump to content
  • Advertisement
Sign in to follow this  
avocados

OpenGL adding GLEW library

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

added glew32.lib and glew32.dll is accessible.

#include <GL\glew.h>
#include <SDL.h>

my openGL program still runs but hangs when I add this:
GLuint vbo_name[5];
...
void func(void) {
glGenBuffers(1, vbo_name);


I think my code is right, maybe GLEW isn't working?

Share this post


Link to post
Share on other sites
Advertisement
Two things to check:
1) Have you called glewInit()?
2) Does your video card actually supports that? (and in that case, are you using GLEW to determine that it is actually supported?)

Share this post


Link to post
Share on other sites
Avocados, try reading the documentation more carefully next time. GLEW must be initialized after the OpenGL window is created.

http://glew.sourceforge.net/basic.html

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!