3 ms·
> Windows comes with OpenGL 1.1 (from 1996) and one has to init its context to load a third party OpenGL 4 context To expand on this: when you create an OpenGL
by dietrichepp 12y ago
> Windows comes with OpenGL 1.1 (from 1996) and one has to init its context to load a third party OpenGL 4 context
To expand on this: when you create an OpenGL context on Windows, you get a context provided by your vendor's drivers, with OpenGL 1.0-1.1 functions provided by Microsoft's DLL, and all the remaining entry points must be retrieved manually, by supplying your own headers and fetching the function pointers. But if you want anything special like a core context, you have to call a special function provided by one of those pointers... which you can't get without a context.
So you have to create an OpenGL window, then use it to get a function pointer to create the window you actually want, then close the first window. This is why we use GLFW or SDL.