Код: Выделить всё
#include
#include
#include
SDL_Texture* LoadTexture(std::string filePath, SDL_Renderer* renderTarget)
{
SDL_Texture* texture = nullptr;
SDL_Surface* surface = IMG_Load(filePath.c_str());
if (surface == nullptr)
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79079260/light-chasing-the-player-in-sdl2[/url]
Мобильная версия