comparison src/main.c @ 37:1db62040204e

Combine some headers to single mplatform.h
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 05 Aug 2013 21:53:33 +0300
parents de2ee75a142f
children 78c981f2ff2d
comparison
equal deleted inserted replaced
36:bef14a3387a1 37:1db62040204e
7 #include <fstream> 7 #include <fstream>
8 #include <map> 8 #include <map>
9 #include <wchar.h> 9 #include <wchar.h>
10 #include <time.h> 10 #include <time.h>
11 11
12 #include "bass.h"
13 #include "mplatform.h"
14
12 #include "freetype-gl.h" 15 #include "freetype-gl.h"
13 #include "vertex-buffer.h" 16 #include "vertex-buffer.h"
14 #include "markup.h" 17 #include "markup.h"
15 #include "shader.h" 18 #include "shader.h"
16 #include "mat4.h" 19 #include "mat4.h"
17 20
18 #if defined(_WIN32) || defined(_WIN64)
19 # define wcpncpy wcsncpy
20 # define wcpcpy wcscpy
21 #endif
22
23 #ifndef __APPLE__
24 #include <malloc.h>
25 #endif
26
27 #define XXX 1
28 #include "bass.h"
29 #include "midifile.h" 21 #include "midifile.h"
30 #include "midiutil.h" 22 #include "midiutil.h"
23
24 #ifdef __APPLE__
25 #include "glew.h"
26 #include <OpenGL/OpenGL.h>
27 #include <OpenGL/glu.h>
28 #include "freeglut.h"
29 #else
30 #include <GL/glew.h>
31 #include <GL/glu.h>
32 #include <GL/freeglut.h>
33 #endif
34
31 35
32 int quitflag = 0; 36 int quitflag = 0;
33 37
34 // GLUT window handle (1 for windowed display, 0 for fullscreen gamemode) 38 // GLUT window handle (1 for windowed display, 0 for fullscreen gamemode)
35 GLuint window = 0; 39 GLuint window = 0;
71 // scene globals 75 // scene globals
72 // vhs 76 // vhs
73 float vhsbeat = 0.0; 77 float vhsbeat = 0.0;
74 float vhsbeat_start = 0; 78 float vhsbeat_start = 0;
75 79
76 #ifdef __APPLE__
77 #include "glew.h"
78 #include <OpenGL/OpenGL.h>
79 #include <OpenGL/glu.h>
80 #include "freeglut.h"
81 #else
82 #include <GL/glew.h>
83 #include <GL/glu.h>
84 #include <GL/freeglut.h>
85 #endif
86
87 #include <assimp/Importer.hpp> 80 #include <assimp/Importer.hpp>
88 //#include <assimp/PostProcess.h>
89 #include <assimp/postprocess.h> 81 #include <assimp/postprocess.h>
90 #include <assimp/scene.h> 82 #include <assimp/scene.h>
91 #include <assimp/DefaultLogger.hpp> 83 #include <assimp/DefaultLogger.hpp>
92 #include <assimp/LogStream.hpp> 84 #include <assimp/LogStream.hpp>
85
93 86
94 #include "stb_image.c" 87 #include "stb_image.c"
95 88
96 89
97 #include <oggplayer.h> 90 #include <oggplayer.h>