2013-02-25 21:52:03 +01:00
|
|
|
/*---------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
KubKraft
|
|
|
|
Copyright (C) 2012 Quent42340 <quent42340@gmail.com>
|
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
---------------------------------------------------------------------------------*/
|
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;
|
|
|
|
}
|
|
|
|
|