diff options
| author | nathan <nathansmith@disroot.org> | 2025-11-05 11:04:07 +0000 |
|---|---|---|
| committer | nathan <nathansmith@disroot.org> | 2025-11-05 11:04:07 +0000 |
| commit | 2769ba6929b8aff2eadbb6c2e66ef4db25332e9b (patch) | |
| tree | 2e584716b50c069aa227dce19aa835542b5f60cf /src/utils.h | |
| parent | 5a1c6f8d8db8311d8be286c40792227549594693 (diff) | |
| download | FindThings-2769ba6929b8aff2eadbb6c2e66ef4db25332e9b.tar.gz FindThings-2769ba6929b8aff2eadbb6c2e66ef4db25332e9b.tar.bz2 FindThings-2769ba6929b8aff2eadbb6c2e66ef4db25332e9b.zip | |
Lazyyyyy
Diffstat (limited to 'src/utils.h')
| -rw-r--r-- | src/utils.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/utils.h b/src/utils.h index 0353dbe..8fb2282 100644 --- a/src/utils.h +++ b/src/utils.h @@ -54,6 +54,10 @@ #define PRINT_VECTOR2(v) printf("%f %f\n", v.x, v.y) #define PRINT_VECTOR3(v) printf("%f %f %f\n", v.x, v.y, v.z) +#define RANDOM_DIRECTION_UNITS 4096 + +typedef void (*DrawWindowContentCallback)(Rectangle rect); + // Typedef hackery. typedef struct Game Game; typedef struct World World; @@ -63,7 +67,19 @@ typedef enum FTError { FTSUCCESS = 0 } FTError; +typedef struct { + Rectangle rect; + bool minimized; + bool moving; + bool resizing; + DrawWindowContentCallback callback; + Vector2 contentSize; + Vector2 scroll; +} FloatingWindow; + Vector2 randomDirection2(int seed, int* nextSeed); Vector3 randomDirection3(int seed, int* nextSeed); +void updateFloatWindow(FloatingWindow* window, const char* title); + #endif |
