C++ SDL2 how to color individual tiles
问题 I'm learning C++ and SDL2 by programming a classic roguelike . Right now I build the map by rendering part of a tiles.png image like this one: I followed lazyfoo's tiling tutorial and it works, but I would like to be able to change each tile background and foreground colors. I can change the full texture colors doing something like this other tutorial, but what if I want, say, a brown door somewhere and a gray one somewhere else? What's the best approach here? Obviously I can't have hundreds