Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Is there a way of “working with OpenGL directly”?

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”.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

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:

  1. Initializing OpenGL context (which is not covered by the spec and is OS-specific);
  2. 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.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading