varies millores en el hud de debug
This commit is contained in:
@@ -313,6 +313,17 @@ void TextRenderer::printAbsolute(int physical_x, int physical_y, const std::stri
|
||||
printAbsolute(physical_x, physical_y, text.c_str(), color);
|
||||
}
|
||||
|
||||
void TextRenderer::printAbsoluteShadowed(int physical_x, int physical_y, const char* text) {
|
||||
// Sombra: negro semitransparente desplazado 1px
|
||||
printAbsolute(physical_x + 1, physical_y + 1, text, {0, 0, 0, 180});
|
||||
// Texto: blanco opaco
|
||||
printAbsolute(physical_x, physical_y, text, {255, 255, 255, 255});
|
||||
}
|
||||
|
||||
void TextRenderer::printAbsoluteShadowed(int physical_x, int physical_y, const std::string& text) {
|
||||
printAbsoluteShadowed(physical_x, physical_y, text.c_str());
|
||||
}
|
||||
|
||||
int TextRenderer::getTextWidth(const char* text) {
|
||||
if (!isInitialized() || text == nullptr) {
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user