1
Graphics / Re: creating a texture through code
« on: January 14, 2021, 01:12:03 pm »
Does your map change each frame? Then you probably should create an sf::Image from the pixels and dump it to disk. You can then draw player and other things in a separate pixel array each frame and overlay it on top of the minimap.
Or at least move the map drawing code into a startup function so that it doesn't run each frame
Or at least move the map drawing code into a startup function so that it doesn't run each frame