From 9edd12e87874eabdc74e45359a5228558e124c98 Mon Sep 17 00:00:00 2001 From: "@syxhe" Date: Thu, 8 Jan 2026 01:59:36 -0600 Subject: Add clay to project --- src/main.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index c9cc873..0b68a44 100755 --- a/src/main.c +++ b/src/main.c @@ -11,6 +11,9 @@ #define _GNU_SOURCE 1 +#define CLAY_IMPLEMENTATION +#include "clay.h" + #include "shared.c" #include "encryption.c" #include "threadpool.c" @@ -18,8 +21,16 @@ #include #include +void handleClayErrors(Clay_ErrorData ed) { + +} + int main() { - error(-1, ENOTSUP, "lol"); + uint64_t totalMem = Clay_MinMemorySize(); + Clay_Arena arena = Clay_CreateArenaWithCapacityAndMemory(totalMem, VXGG_CALLOC(totalMem, 1)); + Clay_Initialize(arena, (Clay_Dimensions){0, 0} /* TODO: Figure out how to get screen dims */, (Clay_ErrorHandler){handleClayErrors}); + + // TODO: Figure out how to use clay return 0; } \ No newline at end of file -- cgit v1.2.3