Initializing OpenGL without GLUT

后端 未结 7 1638
日久生厌
日久生厌 2020-12-02 07:26

every introduction and sample that I can find seems to use GLUT or some other framework to \"initialize\" OpenGL. Is there a way of initializing OpenGL with just what is av

7条回答
  •  我在风中等你
    2020-12-02 08:11

    What you're doing is initializing a window with an OpenGL context. This requires some calls to the operating system. It is not possible to initialize OpenGL with just gl.h and glu.h. GLUT (or SDL, SMFL, etc) does that work for you in a nice platform independent way. You can do the initialization with native calls as well.

提交回复
热议问题