aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h16
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