[Core] Add z-index and string base to Render Commands (#227)

This commit is contained in:
Nic Barker 2025-01-26 15:28:35 +13:00 committed by GitHub
parent cb62db77e3
commit 0a703de69a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 27 additions and 10 deletions

View file

@ -158,7 +158,7 @@ static void SDL_RenderClayCommands(SDL_Renderer *renderer, Clay_RenderCommandArr
} break;
case CLAY_RENDER_COMMAND_TYPE_TEXT: {
const Clay_TextElementConfig *config = rcmd->config.textElementConfig;
const Clay_String *text = &rcmd->text;
const Clay_StringSlice *text = &rcmd->text;
const SDL_Color color = { config->textColor.r, config->textColor.g, config->textColor.b, config->textColor.a };
TTF_Font *font = gFonts[config->fontId];