You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
475 B
17 lines
475 B
/**
|
|
* \file TextureLoader.h
|
|
* \brief Define functions to load textures
|
|
* \author Allan Point
|
|
*/
|
|
|
|
#include <SDL2/SDL.h>
|
|
#include <SDL2/SDL_image.h>
|
|
|
|
/*
|
|
* \brief Create a texture with an image
|
|
* \param[in] renderer The renderer which will draw the image
|
|
* \param[in] path Image's path on the computer
|
|
* \return Return texture created on success. Else return NULL and print the error on STDERR.
|
|
*/
|
|
SDL_Texture* createTextureFromPath(SDL_Renderer* renderer, char* path);
|