Well, let me tell you something my friend: “One does not simply initialize OpenGL”. ![]() Normally, as with most of the libraries, you would #include, add opengl32.lib to linker dependencies and just use all the features of the modern OpenGL in your program, maybe with some kind of additional glInit() call. However, if you need to write a size-limited executable or simply don’t want to create another dependency, you have to take care of this by yourself. ![]() Just call glfwInit(), glfwCreateWindow() and you are done. If you want to open an OpenGL window, most of tutorials and books will tell you to use GLFW, FreeGLUT or SDL framework. Programming C++, Demo101, OpenGL 25 March 2017
0 Comments
Leave a Reply. |