Registry / utility / gl3w
library2018-05-31vcpkgunverified

Simple OpenGL core profile loading.

vcpkg install gl3w
INSTALL
IMPORT
SIG · GL3W
G
gl3w
utilitycppv2018-05-31
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GL/gl3w.h
#include <GL/gl3w.h>

Initialize OpenGL core profile and print version

#include <GL/gl3w.h> #include <GLFW/glfw3.h> #include <iostream> int main() { glfwInit(); GLFWwindow* win = glfwCreateWindow(800, 600, "Test", nullptr, nullptr); glfwMakeContextCurrent(win); if (gl3wInit()) { std::cerr << "Failed to initialize OpenGL\n"; return -1; } std::cout << "OpenGL " << glGetString(GL_VERSION) << std::endl; glfwTerminate(); return 0; }
Debug
Known issues
gotchagl3w requires an OpenGL context to be current before calling gl3wInit().
fix
Create a window and make its context current (e.g., with GLFW) before initializing gl3w.
affects: *
Upgrade
Version history
2018-05-31latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources

No resource links recorded.

gl3w — pip install gl3w · libregistry