Lines 1-11
Link Here
|
1 |
// -*- C++ -*- |
1 |
// -*- C++ -*- |
2 |
|
2 |
|
|
|
3 |
#ifdef __APPLE__ |
3 |
#include <OpenGL/gl.h> |
4 |
#include <OpenGL/gl.h> |
4 |
#include <OpenGL/glu.h> |
5 |
#include <OpenGL/glu.h> |
|
|
6 |
#else |
7 |
#include <GL/gl.h> |
8 |
#include <GL/glu.h> |
9 |
#include <GL/glut.h> |
10 |
#endif |
11 |
|
5 |
#include <SDL/SDL.h> |
12 |
#include <SDL/SDL.h> |
6 |
#include <stdio.h> |
13 |
#include <stdio.h> |
7 |
#include <stdlib.h> |
14 |
#include <stdlib.h> |
|
|
15 |
|
16 |
#ifdef __APPLE__ |
8 |
#include <TinyXML/tinyxml.h> |
17 |
#include <TinyXML/tinyxml.h> |
|
|
18 |
#else |
19 |
#include <tinyxml.h> |
20 |
#endif |
9 |
|
21 |
|
10 |
#include "room.h" |
22 |
#include "room.h" |
11 |
#include "shader.h" |
23 |
#include "shader.h" |
Lines 192-197
Link Here
|
192 |
} |
204 |
} |
193 |
|
205 |
|
194 |
int main(int argc, char** argv) { |
206 |
int main(int argc, char** argv) { |
|
|
207 |
|
208 |
#ifndef __APPLE__ |
209 |
glutInit(&argc, argv); |
210 |
#endif |
211 |
|
195 |
SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO); |
212 |
SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO); |
196 |
|
213 |
|
197 |
SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1); |
214 |
SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1); |