/** * \file TextureLoader.h * \brief Define functions to load textures * \author Allan Point */ #include #include #include /* * \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);