I'm opening an OpenGL context using SDL in OSX 10.8.5.
I've already run some tutorials that draw lines/triangles etc. I then started trying the more modern tutorials at www.open.gl
I'm running into trouble with the OpenGL 3+ API. I already include gl3.h in my headers:
#include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h>
#include <OpenGL/gl3.h>
I get a warning, which is expected since I think the sdl headers open gl.h
. That's okay, but the problem is that the but the compiler still reports that glGenVertexArrays
as undefined even though gl3.h is included, saying error: use of undeclared identifier 'glGenVertexArrays' glGenVertexArrays(1, &vao);