source: trunk/neercs/neercs.cpp @ 1456

Last change on this file since 1456 was 1456, checked in by sam, 10 years ago

neercs: import Rez's code in our framework. Not ready yet.

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#include "video/render.h"
42
43Neercs::Neercs()
44  : m_ready(false)
45{
46}
47
48void Neercs::TickGame(float seconds)
49{
50    WorldEntity::TickGame(seconds);
51}
52
53void Neercs::TickDraw(float seconds)
54{
55    WorldEntity::TickDraw(seconds);
56}
57
58Neercs::~Neercs()
59{
60}
61
62int main(int argc, char **argv)
63{
64    Application app("Neercs", ivec2(800, 600), 60.0f);
65
66#if defined _MSC_VER && !defined _XBOX
67    _chdir("..");
68#elif defined _WIN32 && !defined _XBOX
69    _chdir("../..");
70#endif
71
72    new Neercs();
73    new Render();
74    new DebugFps(5, 5);
75    app.ShowPointer(false);
76
77    app.Run();
78
79    return EXIT_SUCCESS;
80}
81
Note: See TracBrowser for help on using the repository browser.