mirror of
https://github.com/nicbarker/clay.git
synced 2026-02-06 12:48:49 +00:00
SetMesureText and SetQueryScrollOffset takes userData (#212)
This commit is contained in:
parent
8e7e30dda6
commit
e8025cc254
12 changed files with 44 additions and 31 deletions
|
|
@ -247,7 +247,7 @@ int main(void) {
|
|||
.height = GetScreenHeight() / 2
|
||||
}, (Clay_ErrorHandler) { HandleClayErrors }); // This final argument is new since the video was published
|
||||
|
||||
Clay_SetMeasureTextFunction(Raylib_MeasureText);
|
||||
Clay_SetMeasureTextFunction(Raylib_MeasureText, 0);
|
||||
Raylib_fonts[FONT_ID_BODY_16] = (Raylib_Font) {
|
||||
.font = LoadFontEx("resources/Roboto-Regular.ttf", 48, 0, 400),
|
||||
.fontId = FONT_ID_BODY_16
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue