Clase de texto a partir de una fuente bitmap.
Más...
#include <sdl_bitmap_text.h>
Clase de texto a partir de una fuente bitmap.
◆ SDLBitmapText()
SDLBitmapText::SDLBitmapText |
( |
const std::string & |
text, |
|
|
SDLBitmapFont & |
font, |
|
|
SDL_Color |
color |
|
) |
| |
Crea un objeto SDLBitmapText.
- Parámetros
-
text | Texto a mostrar. |
font | Fuente bitmap. |
color | Color del texto. |
◆ 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
-
dest | Destino en la pantalla donde se debe renderizar. |
◆ update_text()
void SDLBitmapText::update_text |
( |
const std::string & |
new_text | ) |
|
Cambia el texto.
- Parámetros
-
new_text | Nuevo texto a mostrar |
La documentación para esta clase fue generada a partir de los siguientes ficheros:
- /home/nicolas/Taller/TP FINAL - ARGENTUM/repo/client/engine/SDL/sdl_bitmap_text.h
- /home/nicolas/Taller/TP FINAL - ARGENTUM/repo/client/engine/SDL/sdl_bitmap_text.cpp