-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
52 lines (42 loc) · 1.17 KB
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//
// Created by Paul on 15.08.2018.
//
#include <PaxEngineIncludes.h>
namespace PAX {
int Tile_main(int argc, char* argv[]);
}
int main(int argc, char* argv[]) {
PAX::Tile_main(argc, argv);
}
#include "tiledemo/Demo.h"
#include "tiledemo/Plugin.h"
// Plugin Includes
#include "paxsdl/SDLPlugin.h"
#include "paxsdl/opengl/SDLOpenGLPlugin.h"
#include "paxopengl/OpenGLPlugin.h"
#include "paxphysics/Plugin.h"
#include "paxtiles/Plugin.h"
int PAX::Tile_main(int argc, char *argv[]) {
int exitcode = 0;
PAX::TileDemo::Demo game;
PAX::SDL::SDLPlugin sdl;
PAX::OpenGL::OpenGLPlugin openGL;
PAX::SDL::OpenGL::SDLOpenGLPlugin sdlOpenGLLink;
PAX::Tiles::Plugin tiles;
PAX::Physics::Plugin physics;
PAX::TileDemo::Plugin demoPlugin;
PAX::Engine &engine = PAX::Engine::Instance();
engine.initialize(
&game,
{
&sdl,
&openGL,
&sdlOpenGLLink,
&physics,
&tiles,
&demoPlugin
}
);
exitcode = engine.run();
return exitcode;
}