Argentum Online - Cliente
Referencia de la Clase SDLText

Objeto de texto de SDL. Más...

#include <sdl_text.h>

Diagrama de herencias de SDLText
SDLTexture

Métodos públicos

 SDLText (const std::string &text, TTF_Font *font, SDL_Color color, SDL_Renderer *renderer)
 Crea un objeto SDLText. Más...
 
 SDLText (const SDLText &other)=delete
 
SDLText operator= (const SDLText &other)=delete
 
 SDLText (SDLText &&other)
 
SDLTextoperator= (SDLText &&other)
 
void update_text (const std::string &text)
 Cambia el texto a renderizar. Más...
 
- Métodos públicos heredados desde SDLTexture
 SDLTexture (SDL_Renderer *renderer)
 Crea un objeto SDLTexture vacio. Más...
 
 SDLTexture (const std::string &filename, SDL_Renderer *renderer)
 
 SDLTexture (const std::string &filename, SDL_Renderer *renderer, uint8_t r, uint8_t g, uint8_t b)
 Crea un objeto SDLTexture. Más...
 
 SDLTexture (const SDLTexture &other)=delete
 
SDLTextureoperator= (const SDLTexture &other)=delete
 
 SDLTexture (SDLTexture &&other)
 
SDLTextureoperator= (SDLTexture &&other)
 
void render (SDL_Rect src, SDL_Rect dest) const
 Renderiza la textura. Más...
 
void render (SDL_Rect dest) const
 Renderiza la textura. Más...
 
int get_width () const
 
int get_height () const
 
void set_color_mod (uint8_t r, uint8_t g, uint8_t b)
 
void reset_color_mod ()
 
void set_alpha (uint8_t a)
 
void reset_alpha ()
 

Otros miembros heredados

- Atributos protegidos heredados desde SDLTexture
SDL_Renderer * renderer
 
SDL_Texture * texture
 
int width
 
int height
 

Descripción detallada

Objeto de texto de SDL.

Documentación del constructor y destructor

◆ SDLText()

SDLText::SDLText ( const std::string &  text,
TTF_Font *  font,
SDL_Color  color,
SDL_Renderer *  renderer 
)

Crea un objeto SDLText.

Parámetros
textTexto a renderizar.
fontFuente a utilizar para el texto.
colorColor del texto.
rendererRenderer al cual se asociara la textura del texto.

Documentación de las funciones miembro

◆ update_text()

void SDLText::update_text ( const std::string &  text)

Cambia el texto a renderizar.

Parámetros
textNuevo texto a renderizar.

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