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.
14 lines
513 B
14 lines
513 B
#include <SDL2/SDL.h>
|
|
#include <SDL2/SDL_image.h>
|
|
#include <SDL2/SDL_ttf.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);
|
|
|
|
SDL_Texture* createGenericButtonTexture(char* text, TTF_Font* font, int* sizex, int* sizey, SDL_bool forHover);
|