millores en la pantalla de càrrega de recursos
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -168,4 +168,7 @@ inline auto toSDLPoint(const SDL_FPoint& fpoint) -> SDL_Point {
|
||||
.x = static_cast<int>(fpoint.x),
|
||||
.y = static_cast<int>(fpoint.y)};
|
||||
return point;
|
||||
}
|
||||
}
|
||||
|
||||
// Añade espacios entre las letras de un string
|
||||
auto spaceBetweenLetters(const std::string& input) -> std::string;
|
||||
Reference in New Issue
Block a user