Objeto de texto de SDL.
Más...
#include <sdl_text.h>
|
| 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) |
|
SDLText & | operator= (SDLText &&other) |
|
void | update_text (const std::string &text) |
| Cambia el texto a renderizar. Más...
|
|
| 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 |
|
SDLTexture & | operator= (const SDLTexture &other)=delete |
|
| SDLTexture (SDLTexture &&other) |
|
SDLTexture & | operator= (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 () |
|
|
SDL_Renderer * | renderer |
|
SDL_Texture * | texture |
|
int | width |
|
int | height |
|
◆ SDLText()
SDLText::SDLText |
( |
const std::string & |
text, |
|
|
TTF_Font * |
font, |
|
|
SDL_Color |
color, |
|
|
SDL_Renderer * |
renderer |
|
) |
| |
Crea un objeto SDLText.
- Parámetros
-
text | Texto a renderizar. |
font | Fuente a utilizar para el texto. |
color | Color del texto. |
renderer | Renderer al cual se asociara la textura del texto. |
◆ update_text()
void SDLText::update_text |
( |
const std::string & |
text | ) |
|
Cambia el texto a renderizar.
- Parámetros
-
text | Nuevo texto a renderizar. |
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_text.h
- /home/nicolas/Taller/TP FINAL - ARGENTUM/repo/client/engine/SDL/sdl_text.cpp