Argentum Online - Cliente
Referencia de la Clase SDLTextureLoader

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
 

Descripción detallada

Cargador de texturas de SDL.

Documentación del constructor y destructor

◆ SDLTextureLoader()

SDLTextureLoader::SDLTextureLoader ( SDL_Renderer *  renderer)

Crea un objeto SDLTextureLoader.

Parámetros
rendererRenderer al cual se asocian las texturas creadas.

Documentación de las funciones miembro

◆ load_texture() [1/2]

SDLTexture SDLTextureLoader::load_texture ( const std::string &  filename) const

Carga una textura.

Parámetros
filenameRuta al archivo a partir del cual se generara la textura.
Devuelve
SDLTexture

◆ load_texture() [2/2]

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.

Parámetros
filenameRuta al archivo a partir del cual se generara la textura.
rColor rojo del color key.
gVerde del color key.
bAzul del color key.
Devuelve
SDLTexture

La documentación para esta clase fue generada a partir de los siguientes ficheros: