Argentum Online - Cliente
Referencia de la Clase SDLBitmapText

Clase de texto a partir de una fuente bitmap. Más...

#include <sdl_bitmap_text.h>

Métodos públicos

 SDLBitmapText (const std::string &text, SDLBitmapFont &font, SDL_Color color)
 Crea un objeto SDLBitmapText. Más...
 
void render (SDL_Rect dest)
 Renderiza el texto. Más...
 
void update_text (const std::string &new_text)
 Cambia el texto. Más...
 
int get_height ()
 Devuelve la altura del texto. Más...
 
int get_width ()
 Devuelve el ancho del texto. Más...
 

Descripción detallada

Clase de texto a partir de una fuente bitmap.

Documentación del constructor y destructor

◆ SDLBitmapText()

SDLBitmapText::SDLBitmapText ( const std::string &  text,
SDLBitmapFont font,
SDL_Color  color 
)

Crea un objeto SDLBitmapText.

Parámetros
textTexto a mostrar.
fontFuente bitmap.
colorColor del texto.

Documentación de las funciones miembro

◆ get_height()

int SDLBitmapText::get_height ( )

Devuelve la altura del texto.

Devuelve
int

◆ get_width()

int SDLBitmapText::get_width ( )

Devuelve el ancho del texto.

Devuelve
int

◆ render()

void SDLBitmapText::render ( SDL_Rect  dest)

Renderiza el texto.

Parámetros
destDestino en la pantalla donde se debe renderizar.

◆ update_text()

void SDLBitmapText::update_text ( const std::string &  new_text)

Cambia el texto.

Parámetros
new_textNuevo texto a mostrar

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