uhdk/include/OPENGL-SOURCES.md

1.8 KiB

Vendored OpenGL headers and loader

GLAD 2.0.8

uhdk.h with UHDK_ENABLE_OPENGL includes the generated glad/gl.h: OpenGL 3.3 core, no extensions, header-only output, explicit per-context tables (--mx), and no platform loader. src/glad.c compiles its implementation into libuhdk. Applications load a GladGLContext through their adapter for uhdk_gl_context_get_proc.

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.