CX/src/main.c

24 lines
347 B
C
Raw Normal View History

#include <cx.h>
int
main(void) {
2024-11-07 21:07:33 +00:00
CX_Context *cx_ctx;
cx_ctx = calloc(1, sizeof(CX_Context));
GLFWwindow *window;
2024-07-06 16:04:24 +00:00
Neural_Network *nn;
2024-11-07 21:07:33 +00:00
2024-07-06 16:04:24 +00:00
int retval;
2024-11-07 21:07:33 +00:00
if (cx_glinit(&(cx_ctx->window))) {
return -1;
}
2024-11-07 21:07:33 +00:00
if (cx_nninit(&(cx_ctx->nn))) {
2024-07-06 16:04:24 +00:00
return -1;
}
2024-11-07 21:07:33 +00:00
retval = cx_run(cx_ctx);
2023-12-13 09:56:21 +00:00
return retval;
}