]> git.lizzy.rs Git - shadowclad.git/blob - main.c
22e6831d82005afab0dffaa210c9c51a280407d3
[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(800, 600);
12         
13         glutInitDisplayMode(GLUT_SINGLE | GLUT_RGBA | GLUT_DEPTH);
14         glutCreateWindow(NULL);
15         
16         glutSetWindowTitle(getGlInfoString());
17         
18         glutDisplayFunc(renderScene);
19         glutReshapeFunc(resizeStage);
20         //glutKeyboardFunc(key_pressed);
21         //glutMouseFunc(mouse_button_event);
22         //glutMotionFunc(mouse_motion_event);
23         
24         initRender();
25         
26         model = importModel("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 }