- [NEW] fonts amb colorets

- [WIP] stringProperty
This commit is contained in:
2025-11-18 20:23:09 +01:00
parent f72311bb17
commit 57f9ed32e3
4 changed files with 18 additions and 3 deletions

View File

@@ -49,8 +49,9 @@ namespace font
draw::draw({sx, sy, spaces[c], h}, {x, y, spaces[c], h});
}
void print(const char* text, int x, int y)
void print(const char* text, int x, int y, uint32_t color)
{
SDL_SetTextureColorMod(surf, (color>>16)&0xff, (color>>8)&0xff, color&0xff);
draw::setSource(surf);
while(*text) {
printChar(*text, x, y);