update text.cpp
This commit is contained in:
@@ -17,10 +17,16 @@ public:
|
||||
// Inicializador
|
||||
void init(LTexture *texture, SDL_Renderer *renderer, Uint8 height);
|
||||
|
||||
// Escribe el texto en pantalla
|
||||
void write(int x, int y, std::string text);
|
||||
void write(int x, int y, std::string text, int kerning);
|
||||
void write(int x, int y, std::string text, int kerning, Uint8 lenght);
|
||||
/**
|
||||
* \brief Escribe texto en pantalla
|
||||
*
|
||||
* \param x Posición en el eje X donde empezar a escribir el texto
|
||||
* \param y Posición en el eje Y donde empezar a escribir el texto
|
||||
* \param string Texto para escribir
|
||||
* \param kerning Espacio de separación entre letras
|
||||
* \param lenght Longitud de la cadena de texto a escribir
|
||||
*/
|
||||
void write(int x, int y, std::string text, Sint8 kerning = 0, Uint8 lenght = 0);
|
||||
|
||||
// Escribe el texto con colores
|
||||
void writeColored(int x, int y, std::string text, Uint8 R, Uint8 G, Uint8 B);
|
||||
|
||||
Reference in New Issue
Block a user