Cargador de texturas de SDL. Más...
#include <sdl_texture_loader.h>
Métodos públicos | |
| SDLTextureLoader (SDL_Renderer *renderer) | |
| Crea un objeto SDLTextureLoader. Más... | |
| SDLTexture | load_texture (const std::string &filename) const |
| Carga una textura. Más... | |
| SDLTexture | load_texture (const std::string &filename, int r, int g, int b) const |
| Carga una textura. Más... | |
| SDLText | load_text (const std::string &text, const std::string &font_file, int r, int g, int b) const |
Cargador de texturas de SDL.
| SDLTextureLoader::SDLTextureLoader | ( | SDL_Renderer * | renderer | ) |
Crea un objeto SDLTextureLoader.
| renderer | Renderer al cual se asocian las texturas creadas. |
| SDLTexture SDLTextureLoader::load_texture | ( | const std::string & | filename | ) | const |
Carga una textura.
| filename | Ruta al archivo a partir del cual se generara la textura. |
| SDLTexture SDLTextureLoader::load_texture | ( | const std::string & | filename, |
| int | r, | ||
| int | g, | ||
| int | b | ||
| ) | const |
Carga una textura.
Se tomara como transparencia el color key indicado con los parametros r,g,b.
| filename | Ruta al archivo a partir del cual se generara la textura. |
| r | Color rojo del color key. |
| g | Verde del color key. |
| b | Azul del color key. |