What is Glew?
-
Glew is OpenGL's Extension Wrangler Library that helps developers initialize OpenGL extensions and write more portable applications
In simple sense, Glew combines lot of openGL APIs into 1 and provides same to developer (eg: context creation APIs etc)
Advantages of Glew
1. Thread safety: GLEW provides thread-safe support for multiple rendering contexts.
2. Core and extension functionality: GLEW exposes both core OpenGL functionality and extensions in a single header file.
3. Platform-specific extensions: GLEW provides separate header files for platform-specific extensions (WGL and GLX)
Print Glew Version
1. Write this code in Visual Studio 2. Download library, include files from glew website 3. Provide path of headers in include directory Project > Configurations(All Configurations) > C/C++ > General > Additional Include Directories 4. Provide path of lib in Library directory Project > Linker > General > Additional Library Directories > glew32s.lib |
|