-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmain.c
43 lines (31 loc) · 897 Bytes
/
main.c
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
37
38
39
40
41
42
43
// #define TICO_NO_RENDER_MODULE
#include "tico.h"
#define CIMGUI_DEFINE_ENUMS_AND_STRUCTS
#include "cimgui/cimgui.h"
int main(int argc, char ** argv) {
tc_Config config = tico_config_load("project.tico", argc, argv);
tico_init(&config);
tico_main_loop();
tico_terminate();
// if (!glfwInit()) {
// printf("Failed to init GLFW");
// return 0;
// }
// glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
// glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 2);
// GLFWwindow *window = glfwCreateWindow(640, 380, "titulow", NULL, NULL);
// glfwMakeContextCurrent(window);
// if (gl3wInit()) {
// printf("Failed to init gl3w");
// return 0;
// }
// while (!glfwWindowShouldClose(window)) {
// glfwPollEvents();
// glClearColor(0, 0, 0, 0);
// glClear(GL_COLOR_BUFFER_BIT);
// glfwSwapBuffers(window);
// }
// glfwDestroyWindow(window);
// glfwTerminate();
return 0;
}