mirror of
https://github.com/clang-retro/mac-sdk.git
synced 2026-11-28 13:19:22 -08:00
GL/gl.h (OpenGL 1.2) and GL/glext.h come from the Khronos registry by tools/gen-gl.py; GL/glu.h (GLU 1.3) and AGL/agl.h (AGL 2.0) are written by hand. The linker imports OpenGLLibrary and OpenGLUtility weakly, and the declarations are weak on PowerPC, so a program can test a function for NULL on a Mac without OpenGL. tools/fakegl.py gives tools/simppc.py a fake OpenGL that keeps the AGL objects and an off-screen buffer; tests/gl.c checks the calls with it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B82eRTDFNgD4oK9xbDsEGn