source: trunk/deushax/deushax.cpp @ 1309

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

gpu: fix a great lot of Direct3D problems, spotted using PIX.

  • Property svn:keywords set to Id
File size: 964 bytes
Line 
1//
2// Deus Hax (working title)
3// Copyright (c) 2010-2011 Sam Hocevar <sam@hocevar.net>
4//
5
6#if defined HAVE_CONFIG_H
7#   include "config.h"
8#endif
9
10#if defined _WIN32
11#   include <direct.h>
12#endif
13
14#include "core.h"
15#include "loldebug.h"
16
17using namespace lol;
18
19#include "game.h"
20#include "debugsprite.h"
21
22#if USE_SDL && defined __APPLE__
23#   include <SDL_main.h>
24#endif
25
26#if defined _WIN32
27#   undef main /* FIXME: still needed? */
28#endif
29
30int main(int argc, char **argv)
31{
32    Application app("Map Test", ivec2(640, 480), 30.0f);
33
34#if defined _WIN32 && !defined _XBOX
35    _chdir(".."); /* Temporary Win32 hack */
36#endif
37    Game *game = new Game("deushax/maps/testmap.tmx");
38    game->SetMouse(160, 96);
39
40    /* Register an input driver and some debug stuff */
41    new DebugFps(10, 10);
42    new DebugSprite(game);
43    //new DebugSphere();
44    //new DebugRecord("lolengine.ogm", FPS);
45    new DebugStats("stats.txt");
46
47    app.Run();
48
49    return EXIT_SUCCESS;
50}
51
Note: See TracBrowser for help on using the repository browser.