Skip to content

Support custom OpenGL proc-address loader - #19

Open
kintel wants to merge 1 commit into
floriankirsch:masterfrom
openscad:custom-gl-loader
Open

kintel wants to merge 1 commit into
floriankirsch:masterfrom
openscad:custom-gl-loader

Conversation

@kintel

@kintel kintel commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Add OpenCSG::setGLProcAddress() and OpenCSG::getGLProcAddress() to allow applications to specify custom OpenGL function loaders (such as glfwGetProcAddress, eglGetProcAddress, OSMesaGetProcAddress, etc.).

Update initExtensionLibrary() in openglExt.h to accept the custom loader and initialize gladLoadGL() or gladLoaderLoadGL().

Update ensureFunctionPointers() in context.cpp to reload function pointers if the loader changes between contexts.

- Add OpenCSG::setGLProcAddress() and OpenCSG::getGLProcAddress() to
  allow applications to specify custom OpenGL function loaders (such as
  glfwGetProcAddress, eglGetProcAddress, OSMesaGetProcAddress, etc.).
- Update initExtensionLibrary() in openglExt.h to accept the custom
  loader and initialize gladLoadGL() or gladLoaderLoadGL().
- Update ensureFunctionPointers() in context.cpp to reload function
  pointers if the loader changes between contexts.
@kintel

kintel commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

Related to openscad/openscad#7082

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant