source: trunk/neercs/neercs.cpp @ 1447

Last change on this file since 1447 was 1447, checked in by sam, 8 years ago

neercs: create a skeleton for neercs.

File size: 1.3 KB
Line 
1//
2// Neercs
3//
4// Copyright: (c) 2012 Sam Hocevar <sam@hocevar.net>
5//
6
7#if defined HAVE_CONFIG_H
8#   include "config.h"
9#endif
10
11#if defined _WIN32
12#   include <direct.h>
13#endif
14
15#if defined _XBOX
16#   define _USE_MATH_DEFINES /* for M_PI */
17#   include <xtl.h>
18#   undef near /* Fuck Microsoft */
19#   undef far /* Fuck Microsoft again */
20#elif defined _WIN32
21#   define _USE_MATH_DEFINES /* for M_PI */
22#   define WIN32_LEAN_AND_MEAN
23#   include <windows.h>
24#   undef near /* Fuck Microsoft */
25#   undef far /* Fuck Microsoft again */
26#else
27#   include <cmath>
28#endif
29
30#if USE_SDL && defined __APPLE__
31#   include <SDL_main.h>
32#endif
33
34#include "core.h"
35#include "loldebug.h"
36
37using namespace std;
38using namespace lol;
39
40#include "neercs.h"
41
42Neercs::Neercs()
43  : m_ready(false)
44{
45}
46
47void Neercs::TickGame(float seconds)
48{
49    WorldEntity::TickGame(seconds);
50}
51
52void Neercs::TickDraw(float seconds)
53{
54    WorldEntity::TickDraw(seconds);
55}
56
57Neercs::~Neercs()
58{
59}
60
61int main(int argc, char **argv)
62{
63    Application app("Neercs", ivec2(1280, 720), 60.0f);
64
65#if defined _MSC_VER && !defined _XBOX
66    _chdir("..");
67#elif defined _WIN32 && !defined _XBOX
68    _chdir("../..");
69#endif
70
71    //new DebugFps(5, 5);
72    new Neercs();
73    app.ShowPointer(false);
74
75    app.Run();
76
77    return EXIT_SUCCESS;
78}
79
Note: See TracBrowser for help on using the repository browser.