(I apologize in advance for my awful English)
I'm writing a personal UI library in C++ using SDL2, and when came the moment to implement icons, I struggled to find how to render them in a unique color.
When creating an Icon object, the constructor loads the SVG as a SDL_Texture and then does a SDL_RenderCopy when the render() method is called. The Icon class also has a field for the color.
Suppose the initial SVG is black, how do I render the texture in e.g. white?
Thanks!