diff options
| 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 |
| commit | 9edd12e87874eabdc74e45359a5228558e124c98 (patch) | |
| tree | dc18bc660675991670dc8792852f253a9531b9fd /src/main.c | |
| parent | e814f6bcc2c66b249348f80c1307b98778fd7ae9 (diff) | |
Add clay to project
Diffstat (limited to 'src/main.c')
| -rwxr-xr-x | src/main.c | 13 |
1 files changed, 12 insertions, 1 deletions
| @@ -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 | ||
| 24 | void handleClayErrors(Clay_ErrorData ed) { | ||
| 25 | |||
| 26 | } | ||
| 27 | |||
| 21 | int main() { | 28 | int 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 |
