Sprite: Se peude establecer el nivel de zoom en ancho y alto
This commit is contained in:
@@ -34,9 +34,10 @@ class Text
|
||||
private:
|
||||
// Objetos y punteros
|
||||
Texture *texture; // Textura con los gráficos para el texto
|
||||
Sprite *sprite; // Objeto para dibujar el texto
|
||||
Sprite *sprite; // Objeto para dibujar el texto
|
||||
|
||||
// Variables
|
||||
int zoom; // Tamaño del texto
|
||||
int boxWidth; // Anchura de la caja de cada caracter en el png
|
||||
int boxHeight; // Altura de la caja de cada caracter en el png
|
||||
bool fixedWidth; // Indica si el texto se ha de escribir con longitud fija en todas las letras
|
||||
@@ -77,6 +78,12 @@ public:
|
||||
|
||||
// Establece si se usa un tamaño fijo de letra
|
||||
void setFixedWidth(bool value);
|
||||
|
||||
// Establece el tamaño del zoom
|
||||
void setZoom(int value);
|
||||
|
||||
// Quita el zoom
|
||||
void disableZoom();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user