summaryrefslogtreecommitdiff
path: root/src/utils.c
blob: 35bd0a964bd7874a4f57525a763ca045655240b4 (plain)
1
2
3
4
5
6
7
8
9
10
#include "utils.h"


SDL_Texture *load_texture(SDL_Renderer *renderer, const char *path)
{
    SDL_Surface *s = SDL_LoadBMP(path);
    SDL_Texture *res = SDL_CreateTextureFromSurface(renderer, s);
    SDL_FreeSurface(s);
    return res;
}