"glCreateShader" has not been declared in this area?

Why am I getting these errors?

error: "GL_VERTEX_SHADER" was not declared in this area

error: 'glCreateShader' was not declared in this area

the code:

GLuint vs = glCreateShader(GL_VERTEX_SHADER);

And yes, I have inclusions to survive.

+5
source share
2 answers

What returns glGetString(GL_VERSION)?

CreateShadermissing in GLUT, but OpenGL 2.0. If your "includes excess" does not include gl.hfor any reason, or your version of GL is less than 2.0, the headers will not declare it.

I would also check yours gl.hto see if it is indeed advertised there CreateShader.

: OpenGL Windows. GLEW , .

+6

OpenGL OpenGL, . gl.h .

+2

All Articles