Registry / other / opengl

opengl

JSON →
library2022-12-04vcpkgunverified

OpenGL is a cross-platform API for rendering 2D and 3D vector graphics.

vcpkg install opengl
INSTALL
IMPORT
SIG · OPENGL
O
opengl
othercppv2022-12-04
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/gl.h
#include <GL/gl.h>

Retrieve the OpenGL version string (requires a valid OpenGL context).

#include <GL/gl.h> #include <iostream> int main() { std::cout << "OpenGL version: " << glGetString(GL_VERSION) << std::endl; return 0; }
Debug
Known issues
gotchaOpenGL headers and libraries vary by platform; on Windows, you may need to link against opengl32.lib.
fix
Use the CMake target OpenGL::GL which handles platform-specific linking.
affects: *
Upgrade
Version history
2022-12-04latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources

No resource links recorded.

opengl — pip install opengl · libregistry