'glCreateShader' was not declared in this scope?

后端 未结 3 2063
隐瞒了意图╮
隐瞒了意图╮ 2021-01-18 07:30

Why am I getting these errors?

error: \'GL_VERTEX_SHADER\' was not declared in this scope
error: \'glCreateShader\' was not declared in thi

3条回答
  •  终归单人心
    2021-01-18 08:07

    libepoxy is like an extended gl.h;

    #include can be replaced with #include , and -lGL with -lepoxy. If you are on Windows/Mac you will have to build the source, so it might not be worth it if you already have a loader that you prefer, but I have found it works pretty well as a drop in replacement for GL/gl.h for GL3.3+, that got rid of the errors.

提交回复
热议问题