You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ask only because it would be such a handy tool. GLAD is a platform specific dependency, so imagine if I add it to my cross-platform application. GLAD wont work unless each user of the application is running the same platform as I am. That isn't very convenient. Also, to the extent of my knowledge, the website that generates the the GLAD zip file does allow you to choose which platform you'd like to download GLAD for. That means that whoever wants to use my application will have to download GLAD for themselves and then build my app. Now, Imagine the said scenario, but with an API that I can tap into with wget, curl, or some other command that I can modify the URL to target a specific platform. Now, I can just place this in my Makefile with a couple ifeq (<platform>)s and the only thing my users would have to do is build the application with make. Simple.
But, if such functionality isn't available, am I missing something? Is there an alternative to achieve the results I'd like that I'm not aware of?
The text was updated successfully, but these errors were encountered:
Glad itself is not platform specific. You can freely choose the configuration you need (extensions, APIs, etc) and include the resulting C files in your repository.
This is also my recommended way of using glad, generate once, include the source and only manually re-generate when necessary, then update the sources (which does give nice git diffs).
The underlying OpenGL context is indeed highly platform specific, but glad already expects a fully setup context (from e.g. GLFW or SDL), so this part does not concern glad.
If you're talking about APIs like WGL and GLX, these are platform specific, but this can easily be managed by either your build tools or a simple #ifdef.
I ask only because it would be such a handy tool. GLAD is a platform specific dependency, so imagine if I add it to my cross-platform application. GLAD wont work unless each user of the application is running the same platform as I am. That isn't very convenient. Also, to the extent of my knowledge, the website that generates the the GLAD zip file does allow you to choose which platform you'd like to download GLAD for. That means that whoever wants to use my application will have to download GLAD for themselves and then build my app. Now, Imagine the said scenario, but with an API that I can tap into with wget, curl, or some other command that I can modify the URL to target a specific platform. Now, I can just place this in my Makefile with a couple
ifeq (<platform>)
s and the only thing my users would have to do is build the application withmake
. Simple.But, if such functionality isn't available, am I missing something? Is there an alternative to achieve the results I'd like that I'm not aware of?
The text was updated successfully, but these errors were encountered: