How do I create an OpenGL 3.3 context in GLFW 3

前端 未结 1 507
情书的邮戳
情书的邮戳 2020-12-06 19:32

I\'ve written a simple OpenGL 3.3 program which is supposed to render a triangle, based off of this tutorial, except I\'m using GLFW to create the window and context, instea

相关标签:
1条回答
  • 2020-12-06 20:10

    In core profile OpenGL 3.3, you need a shader in order to render. So you need to compile and link a program that contains a vertex and fragment shader.

    0 讨论(0)
提交回复
热议问题