summaryrefslogtreecommitdiff
path: root/src/main.c
blob: d0a757343a3cb29196ca4ac1108e191696ce8c79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/**
 * @file main.c
 * @author syxhe (https://t.me/syxhe)
 * @brief Putting everything together
 * @version 0.1
 * @date 2025-06-09
 *
 * @copyright Copyright (c) 2026, [Simplified BSD License](../../LICENSE)
 *
 */

#define _GNU_SOURCE 1

#define CLAY_IMPLEMENTATION
#include "clay.h"

#include "shared.c"
#include "encryption.c"
#include "threadpool.c"

#include <errno.h>
#include <error.h>

void handleClayErrors(Clay_ErrorData ed) {

}

int main() {
    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;
}