adding GLEW library

Started by
1 comment, last by avocados 13 years, 9 months ago
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?
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?)
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

This topic is closed to new replies.

Advertisement