Reputation: 305
I want to use OpenGL but I don't know how to set up GLEW. Would I lose something if I am going to use Glad? Could I learn from tutorials that use GLEW?
Upvotes: 19
Views: 22413
Reputation: 3812
If you're starting programming with OpenGL on a desktop platform then either one will work and the choice isn't that critical. Switching later is also still an option. The choice only becomes more important, and more objective, for advanced use cases.
Glad is typically used by selecting the necessary extensions in the web interface, downloading the generated source and header files and copying them into your project. GLEW is a library that needs to be installed and is usually added as an dependency in, e.g., CMake.
Advantages of Glad:
Advantages of GLEW:
Other OpenGL loading libraries exists as well. See here: https://www.khronos.org/opengl/wiki/OpenGL_Loading_Library
Disclaimer: The answer is based on my own (limited) experience with both libraries and reading the experiences of others.
Upvotes: 31