so I'm working on a game engine. It's partially python and c++.
One part that is currently a pain point is setting the uniforms for shaders. Currently I have to define a behavior for all 50+ methods used for setting the uniforms glUniform{1,2,3,4}{uifd}{v}
Is there a single method that I could just call, give it some memory, and tell it, this is a <inset type here> at this location and it repeats this many times?
My motivation:
These uniforms usually come from the "mesh object", (containing single values, bones, textures, etc.) or they come from "shader object" where they're set per shader, (like light position, camera orientation etc.)
So setting all of it programmatically, instead of having to deal with multiple different methods is preferable.