lore-forge/desktop/vendor/uhdk/include/OPENGL-SOURCES.md

1.6 KiB

Vendored OpenGL headers and loader

GLAD 2.0.8

uhdk.h with UHDK_ENABLE_OPENGL includes the generated glad/gl.h, no extensions, core 3.3 api

Generated unmodified with the pinned generator and its bundled Khronos snapshot:

python3 -m venv /tmp/uhdk-glad
/tmp/uhdk-glad/bin/pip install glad2==2.0.8
/tmp/uhdk-glad/bin/python -m glad --api gl:core=3.3 --extensions '' \
  --reproducible --out-path /tmp/uhdk-glad-output c --header-only --mx

Copy /tmp/uhdk-glad-output/include/glad/gl.h to include/glad/gl.h. No generator or Python installation is required to build Uhdk.

Original Khronos headers

Retained unmodified for consumers choosing their own loader. Do not combine GL/glcorearb.h with glad/gl.h or UHDK_ENABLE_OPENGL in a translation unit. License notices are preserved in each file.