From 2769ba6929b8aff2eadbb6c2e66ef4db25332e9b Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 5 Nov 2025 04:04:07 -0700 Subject: Lazyyyyy --- src/utils.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/utils.h') 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 -- cgit v1.2.3