opengl-registry/cci.20220929

OpenGL, OpenGL ES, and OpenGL ES-SC API and Extension Registry.
Recipe info
2023-12-05

Available packages
Header Only

Install
Add the following line to your conanfile.txt:
[requires]
opengl-registry/cci.20220929

Using opengl-registry

Note

If you are a new Conan user, we recommend reading the how to consume packages tutorial.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
opengl-registry/cci.20220929
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("opengl-registry/cci.20220929")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): opengl-registry
  • CMake target name(s): opengl-registry::opengl-registry
  • pkg-config file name(s): opengl-registry.pc

A simple use case using the CMake file name and the global target:

# ...
find_package(opengl-registry REQUIRED)
# ...
target_link_libraries(YOUR_TARGET opengl-registry::opengl-registry)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the opengl-registry homepage listed above:

#include "GL/glcorearb.h"
#include "GL/glext.h"
#include "GL/glxext.h"
#include "GL/wgl.h"
#include "GL/wglext.h"
#include "GLES/1.0/gl.h"
#include "GLES/egl.h"
#include "GLES/gl.h"
#include "GLES/glext.h"
#include "GLES/glplatform.h"
#include "GLES2/gl2.h"
#include "GLES2/gl2ext.h"
#include "GLES2/gl2platform.h"
#include "GLES3/gl3.h"
#include "GLES3/gl31.h"
#include "GLES3/gl32.h"
#include "GLES3/gl3platform.h"
#include "GLSC/1.0.1/gl.h"
#include "GLSC/1.0/gl.h"
#include "GLSC2/gl2platform.h"
#include "GLSC2/glsc2.h"
#include "GLSC2/glsc2ext.h"