2013-02-11 21:58:34 +01:00
|
|
|
#include <string>
|
|
|
|
#include <map>
|
|
|
|
#include <vector>
|
2013-02-17 20:46:59 +01:00
|
|
|
#include <cmath>
|
2013-02-11 21:58:34 +01:00
|
|
|
|
|
|
|
#include <SDL/SDL.h>
|
|
|
|
#include <GL/gl.h>
|
|
|
|
#include <GL/glu.h>
|
|
|
|
|
|
|
|
#include "sdlglutils.h"
|
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
#include "init.h"
|
|
|
|
#include "map.h"
|
|
|
|
#include "cube.h"
|
|
|
|
#include "biome.h"
|
|
|
|
#include "player.h"
|
|
|
|
#include "scene.h"
|
|
|
|
|
2013-02-17 18:03:15 +01:00
|
|
|
int main(int argc, char *argv[]) {
|
2013-02-11 21:58:34 +01:00
|
|
|
// Init SDL and OpenGL
|
|
|
|
initSDL();
|
|
|
|
initOpenGL();
|
|
|
|
|
|
|
|
// Scene execution
|
|
|
|
Scene scene;
|
|
|
|
scene.exec();
|
|
|
|
|
|
|
|
// Stop SDL
|
|
|
|
SDL_Quit();
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|