WIP(zephr): window icon. basic ui button

- zephr: added ability to assign an icon to a window
- zephr: added a basic ui button with hover and click states and cursor
  change
This commit is contained in:
2023-12-17 03:52:35 +02:00
parent 499591162e
commit 2fc8ac6456
9 changed files with 8202 additions and 27 deletions
+2 -1
View File
@@ -5,13 +5,14 @@
const char *font_path = "assets/fonts/Rubik/Rubik-VariableFont_wght.ttf";
/* const char *font_path = "assets/fonts/Roboto/Roboto-Bold.ttf"; */
const char *game_icon_path = "assets/icon-128x128.png";
const char *title = "C2048";
int main(int argc, char *argv[]) {
CORE_UNUSED(argc);
CORE_UNUSED(argv);
zephr_init(font_path, title, (Size){1200, 800});
zephr_init(font_path, game_icon_path, title, (Size){1200, 800});
zephr_make_window_non_resizable();
/* zephr_toggle_fullscreen(); */