]> git.lizzy.rs Git - shadowclad.git/blob - main.c
9f239c67ae0161e7012a61aab9ecedb29231026b
[shadowclad.git] / main.c
1 #include <GL/glut.h>
2
3 #include "debugutil.h"
4 #include "glut_janitor.h"
5 #include "render.h"
6 #include "level.h"
7
8 int main(int argc, char** argv) {
9         glutInit(&argc, argv);
10         
11         glutInitWindowSize(640, 480);
12         
13         glutInitDisplayMode(GLUT_SINGLE | GLUT_RGBA | GLUT_DEPTH);
14         glutCreateWindow(NULL);
15         
16         glutSetWindowTitle(getGlInfoString());
17         
18         glutDisplayFunc(render_scene);
19         glutReshapeFunc(resize_stage);
20         //glutKeyboardFunc(key_pressed);
21         //glutMouseFunc(mouse_button_event);
22         //glutMotionFunc(mouse_motion_event);
23         
24         init_render();
25         
26         model = import_model("out/assets/wall01.3ds");
27         /*
28         fprintf(stderr, "*model = ");
29         print_struct_aiScene(stderr, model);
30         fprintf(stderr, "\n*(*model).mRootNode = ");
31         print_struct_aiNode(stderr, (*model).mRootNode);
32         fprintf(stderr, "\n");
33         */
34         glutMainLoop();
35         return 0;
36 }