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
The entire codebase using the "glad" prefix on all its functions. I was thinking that maybe it should switch to using namespaces but I realize that would be a breaking change so maybe it could be set with a compile definition like #define GLAD_USE_NAMESPACES or something like that so that it's an optional feature?
The text was updated successfully, but these errors were encountered:
It would have to be a generator flag rather than a define. I'm not aware of a metaprogramming technique in C/C++ that changes the names of functions, and duplicating the declarations in one file would make for a lot of bloat.
On July 1, 2019 1:37:52 AM MDT, kennycastro007 ***@***.***> wrote:
The entire codebase using the "glad" prefix on all its functions. I was
thinking that maybe it should switch to using namespaces but I realize
that would be a breaking change so maybe it could be set with a compile
definition like `#define GLAD_USE_NAMESPACES` or something like that so
that it's an optional feature?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#219
The files are generated rather than statically typed it seems, since I couldn't find the source files in the repo, but how about having 2 includes? Set the flag and it includes the namespace version rather than the prefix version? That wouldn't break anything as the default would be prefix but those who want to use namespace could set the flag and get them
You can for now easily do this using sed or any search-replace tool, just use it on the generated code.
This is also discussed in: #198 - I plan to add this to glad2 as an option at one point (PR welcome), but this isnt exactly high priority for me (since it is pretty easy to do with sed)
The entire codebase using the "glad" prefix on all its functions. I was thinking that maybe it should switch to using namespaces but I realize that would be a breaking change so maybe it could be set with a compile definition like
#define GLAD_USE_NAMESPACES
or something like that so that it's an optional feature?The text was updated successfully, but these errors were encountered: