summaryrefslogtreecommitdiff
path: root/src/junkcraft.c
blob: 823c27b04d18843f3f5ac3b16bd783a254d9bd33 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "engine.h"
#include "input.h"
#include <time.h>


int main() {
    struct engine engine = { 0 };
    if (engine_init(&engine) != 0) {
        return -1;
    }
    pthread_t input_thread = input_init(&engine);
    engine_start(&engine);
    input_join(input_thread, &engine);
    window_cleanup(engine.window);
    return 0;
}