TheGuy13
TheGuy13

Reputation: 41

glGenVertexArrays not available in c++

As i have already programmed with opengl on java I tried to switch to c++ using Visual Studio 2015 Community

I currently have opengl version 4.5 installed (cout << glGetString(GL_VERSION))

I normally have included all libraries I need for programming but for some reason there is no "glGenVertexArrays" and "glGenBufferArrays" available

Could it be that I forgot a library?

Upvotes: 1

Views: 3383

Answers (1)

BDL
BDL

Reputation: 22165

On windows, the default header files and libs do only support OpenGL 1.1. When you want to use a higher version, you have to load the extensions manually or use an extension loading library like glew (which I would recommend).

Upvotes: 6

Related Questions