source: trunk/monsterz/monsterz.cpp @ 696

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

Merge all debug entity includes in <loldebug.h>.

  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1//
2// Monsterz
3//
4// Copyright: (c) 2005-2011 Sam Hocevar <sam@hocevar.net>
5//   This program is free software; you can redistribute it and/or
6//   modify it under the terms of the Do What The Fuck You Want To
7//   Public License, Version 2, as published by Sam Hocevar. See
8//   http://sam.zoy.org/projects/COPYING.WTFPL for more details.
9//
10
11#if defined HAVE_CONFIG_H
12#   include "config.h"
13#endif
14
15#if defined _WIN32
16#   include <direct.h>
17#endif
18
19#include "core.h"
20#include "lolgl.h"
21#include "loldebug.h"
22
23using namespace lol;
24
25#if defined HAVE_GLES_1X || defined HAVE_GLES_2X
26#   include "eglapp.h"
27#else
28#   include "sdlapp.h"
29#   include "sdlinput.h"
30#endif
31#include "interface.h"
32
33#if defined _WIN32
34#   undef main /* FIXME: still needed? */
35#endif
36
37int main(int argc, char **argv)
38{
39#if defined HAVE_GLES_1X || defined HAVE_GLES_2X
40    EglApp app("Monsterz", vec2i(640, 480), 60.0f);
41#else
42    SdlApp app("Monsterz", vec2i(640, 480), 60.0f);
43#endif
44
45#if defined _WIN32
46    _chdir(".."); /* Temporary Win32 hack */
47#endif
48
49    /* Register an input driver and some debug stuff */
50#if !defined HAVE_GLES_1X && !defined HAVE_GLES_2X
51    new SdlInput();
52#endif
53    new Interface();
54    new DebugFps(20, 20);
55    //new DebugRecord("monsterz.ogm", FPS);
56
57    app.Run();
58
59    return EXIT_SUCCESS;
60}
61
Note: See TracBrowser for help on using the repository browser.