2023-10-25 13:02:23 +00:00
|
|
|
#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));
|
2023-10-25 13:02:23 +00:00
|
|
|
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))) {
|
2023-10-25 13:02:23 +00:00
|
|
|
return -1;
|
|
|
|
}
|
2024-09-29 20:11:45 +00:00
|
|
|
|
2024-11-07 21:07:33 +00:00
|
|
|
if (cx_nninit(&(cx_ctx->nn))) {
|
2024-07-06 16:04:24 +00:00
|
|
|
return -1;
|
|
|
|
}
|
2023-10-25 13:02:23 +00:00
|
|
|
|
2024-11-07 21:07:33 +00:00
|
|
|
retval = cx_run(cx_ctx);
|
2023-12-13 09:56:21 +00:00
|
|
|
return retval;
|
2023-10-25 13:02:23 +00:00
|
|
|
}
|
2024-11-06 18:29:09 +00:00
|
|
|
|