Provides a centralized, static interface for all texture-related operations.
Definition TextureManager.h:17
static TTF_Font * font
The global font used for text rendering.
Definition TextureManager.h:19
static SDL_Texture * LoadTexture(const char *fileName)
Loads a texture from an image file.
Definition TextureManager.cpp:12
static void DrawTexture(SDL_Texture *tex, SDL_Rect &src, SDL_Rect &dest)
Draws a portion of a texture.
Definition TextureManager.cpp:46
static SDL_Point GetSizeOfSurface(const char *fileName)
Gets the dimensions of an image file without loading the full texture.
Definition TextureManager.cpp:4