millores en la pantalla de càrrega de recursos

This commit is contained in:
2025-11-01 18:07:55 +01:00
parent b80e81dab3
commit 139d56f8b5
6 changed files with 52 additions and 48 deletions

View File

@@ -449,4 +449,16 @@ void fillTextureWithColor(SDL_Renderer* renderer, SDL_Texture* texture, Uint8 r,
// Restaurar el render target previo
SDL_SetRenderTarget(renderer, previous_target);
}
// Añade espacios entre las letras de un string
auto spaceBetweenLetters(const std::string& input) -> std::string {
std::string result;
for (size_t i = 0; i < input.size(); ++i) {
result += input[i];
if (i != input.size() - 1) {
result += ' ';
}
}
return result;
}