-
Notifications
You must be signed in to change notification settings - Fork 439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GL: Cleanup std::string usage in Shader/AbstractShaderProgram #608
Conversation
464fad1
to
0b5f72b
Compare
0b5f72b
to
a0dc144
Compare
Umm, I have a WIP branch with very similar changes already (#499), just haven't gotten around to finish it because so many things to do. Which means, my review of this PR would be basically making it look exactly the same as my local WIP changes, so ... 😅 ... to save us both time, can you just wait until I finish #499? EDIT: Just the backwards compatibility considerations re |
Amazing that this got merged, and that you added me as co-author, hehe, I didn't expect that much ! 😄 |
Yeah sorry the cleanup took so long, on the other hand it relies heavily on quite recent features such as the |
I also just realised the |
The intention is to port those to I'm painfully aware of all remaining yet-unported locations -- there's still |
I see. Another one I just noticed: the |
Those can't be changed in a backwards-compatible way, as it'd be a different function signature. But I solved the exact same problem for The main reason I didn't change those yet was that the callbacks need an upgrade anyway, to support what Yeah so I didn't change those yet because when I would update them to implement the above, it would be a second breakage for the users, forcing them to adapt all their callback function signatures yet again. Better to just break once than twice, in my opinion. Sorry that there isn't any low-hanging fruit left 😅 |
I stumbled on this remaining usage of
std::string
,std::vector
andstd::pair
so I'm giving a shot at migrating it.Not sure exactly yet what's the backwards compatibility strategy to employ here, so I'm kind of opening this PR to figure it out, hope it's not too much of a bother!