forked from jaildesigner-jailgames/jaildoctors_dilemma
Añadido el procedimiento reLoadTexture a todos los objetos que lo necesitaban
This commit is contained in:
@@ -49,10 +49,6 @@ void Text::init()
|
||||
offset[i].x = ((i - 32) % 15) * boxWidth;
|
||||
offset[i].y = ((i - 32) / 15) * boxHeight;
|
||||
}
|
||||
|
||||
// printf("Cargando %s\n", file.c_str());
|
||||
// const std::string texto = "w = "+ std::to_string(boxWidth) + ", h = " + std::to_string(boxHeight);
|
||||
// printf("%s\n",texto.c_str());
|
||||
}
|
||||
|
||||
// Escribe texto en pantalla
|
||||
@@ -179,4 +175,10 @@ void Text::initOffsetFromFile()
|
||||
int Text::getCharacterWidth()
|
||||
{
|
||||
return boxWidth;
|
||||
}
|
||||
|
||||
// Recarga la textura
|
||||
void Text::reLoadTexture()
|
||||
{
|
||||
texture->reLoad();
|
||||
}
|
||||
Reference in New Issue
Block a user