El game_text dels items ja son textures generades i precarregades

This commit is contained in:
2024-10-29 16:04:14 +01:00
parent e2abf835f9
commit d83c05bad4
12 changed files with 48 additions and 30 deletions

View File

@@ -52,7 +52,7 @@ public:
void write(int x, int y, const std::string &text, int kerning = 1, int lenght = -1);
// Escribe el texto en una textura
std::shared_ptr<Texture> writeToTexture(int x, int y, const std::string &text, int kerning = 1);
std::shared_ptr<Texture> writeToTexture(const std::string &text, int kerning = 1);
// Escribe el texto con colores
void writeColored(int x, int y, const std::string &text, Color color, int kerning = 1, int lenght = -1);