Is it possible to use GLX/WGL without the rest of OpenGL headers? #398
MarkLagodych
started this conversation in
General
Replies: 1 comment 1 reply
-
Yeah you can use it without but you'll have to replace the include (manually) with something that provides the symbols instead or define it yourself. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am working on a hobby window management library (like SDL but focused on GUI) and I wish to add functionality for creating OpenGL contexts, without actual OpenGL loading. The reason is that I want to use GLX/WGL/EGL for creating GL contexts and let the users use whatever OpenGL loader, version and extensions they want.
However, the generated
<glad/glx.h>
header includes<glad/gl.h>
which does not seem to do much: it only provides one typeGLubyte
for a single function definition.The generated
<glad/wgl.h>
also includes<glad/gl.h>
but I did not find what definitions from there are used.The question is: is it possible to use WGL/GLX without
<glad/gl.h>
?Beta Was this translation helpful? Give feedback.
All reactions