Recently I was searching “How to start developing with OpenGL” and found a question, where one of the answers was something like this: “…No, you don’t need GLUT nor GLFW - if you want to write high-performance code - work directly with OpenGL”.
This question was answered eleven years ago and I have no idea what he meant, because I didn’t find any information about “working with OpenGL directly”.
CodePudding user response:
I would imagine that would be using functions documented in the OpenGL specification rather than the wrappers provided by the libraries you mention. However, there are two pain points here:
- Initializing OpenGL context (which is not covered by the spec and is OS-specific);
- Loading all OpenGL function addresses.
While the first is not too complicated, the second would require a ton of boilerplate code. You might want to look into using one of the function loading libraries if you want to have access to all OpenGL functions.