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;
}
Upgrade
Version history
2018-05-31latest on vcpkg
Audit
Dependencies
No dependency data recorded yet.
Resources
No resource links recorded.