Arch Game Engine
0.2
|
Class for loading in SDL Textures. More...
#include <image.h>
Public Member Functions | |
void | loadImage (string file, SDL_Renderer *ren) |
Load in either a BMP or PNG file with the path and renderer. | |
void | loadPNG (string file, SDL_Renderer *ren) |
Load in a PNG image with the path to the PNG file and the renderer. | |
void | loadBMP (string file, SDL_Renderer *ren) |
Load in a BMP image with the path to the BMP file and the renderer. | |
SDL_Texture * | getTexture () |
Get SDL_Texture. | |
void | setImage (SDL_Texture *t) |
Set new, preloaded texture, to Image. | |
string | getFile () const |
Get path file of the image. | |
void | setFile (string f) |
Set path file to the image. | |
void | setTexture (SDL_Texture *t) |
Set texture. | |
void | setSurface (SDL_Surface *s, SDL_Renderer *ren) |