diff options
| author | nathan <nathansmith@disroot.org> | 2025-11-16 05:10:55 +0000 |
|---|---|---|
| committer | nathan <nathansmith@disroot.org> | 2025-11-16 05:10:55 +0000 |
| commit | 7bb57d60f8d8249eb48c9c7a7e7d3760127a0c3c (patch) | |
| tree | b6daaa6d121625a6de0b7f2e50e15d6f04a319e5 /src/game.c | |
| parent | 52d1a04b30b5ce8da9b9dcce02e829a35f664dcb (diff) | |
| download | FindThings-7bb57d60f8d8249eb48c9c7a7e7d3760127a0c3c.tar.gz FindThings-7bb57d60f8d8249eb48c9c7a7e7d3760127a0c3c.tar.bz2 FindThings-7bb57d60f8d8249eb48c9c7a7e7d3760127a0c3c.zip | |
Working on window focus
Diffstat (limited to 'src/game.c')
| -rw-r--r-- | src/game.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -81,6 +81,18 @@ void initGame(Game* game) game->player.camera.fovy = game->settings.fov; game->player.position = Vector3Scale(game->world.size, 0.5); + // Window manager. + initWindowManager(&game->wm); + + FloatingWindow window = createFloatingWindow("test1", + (Rectangle){0.0, 0.0, + 100.0, 100.0}); + addWindowToWindowManager(&game->wm, window); + + window = createFloatingWindow("test2", + (Rectangle){200.0, 200.0, 100.0, 100.0}); + addWindowToWindowManager(&game->wm, window); + disableGameCursor(game); } @@ -124,6 +136,7 @@ void drawGameScreen(Game* game) void updateGameUI(Game* game) { + updateWindowManager(&game->wm); } void updateGameScene(Game* game) |
