summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
author@syxhe <https://t.me/syxhe>2026-01-08 01:59:36 -0600
committer@syxhe <https://t.me/syxhe>2026-01-08 02:32:39 -0600
commit9edd12e87874eabdc74e45359a5228558e124c98 (patch)
treedc18bc660675991670dc8792852f253a9531b9fd /src/main.c
parente814f6bcc2c66b249348f80c1307b98778fd7ae9 (diff)
Add clay to project
Diffstat (limited to 'src/main.c')
-rwxr-xr-xsrc/main.c13
1 files changed, 12 insertions, 1 deletions
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 @@
11 11
12#define _GNU_SOURCE 1 12#define _GNU_SOURCE 1
13 13
14#define CLAY_IMPLEMENTATION
15#include "clay.h"
16
14#include "shared.c" 17#include "shared.c"
15#include "encryption.c" 18#include "encryption.c"
16#include "threadpool.c" 19#include "threadpool.c"
@@ -18,8 +21,16 @@
18#include <errno.h> 21#include <errno.h>
19#include <error.h> 22#include <error.h>
20 23
24void handleClayErrors(Clay_ErrorData ed) {
25
26}
27
21int main() { 28int main() {
22 error(-1, ENOTSUP, "lol"); 29 uint64_t totalMem = Clay_MinMemorySize();
30 Clay_Arena arena = Clay_CreateArenaWithCapacityAndMemory(totalMem, VXGG_CALLOC(totalMem, 1));
31 Clay_Initialize(arena, (Clay_Dimensions){0, 0} /* TODO: Figure out how to get screen dims */, (Clay_ErrorHandler){handleClayErrors});
32
33 // TODO: Figure out how to use clay
23 34
24 return 0; 35 return 0;
25} \ No newline at end of file 36} \ No newline at end of file