source: trunk/test/debug/quad.cpp @ 863

Last change on this file since 863 was 863, checked in by sam, 9 years ago

core: rename vec2i to ivec2 etc. to better match GLSL.

  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1//
2// Lol Engine - Debug Quad test program
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#include "core.h"
16#include "lolgl.h"
17#include "loldebug.h"
18
19using namespace std;
20using namespace lol;
21
22#if defined __CELLOS_LV2__
23#   include "ps3app.h"
24#elif defined HAVE_GLES_2X
25#   include "eglapp.h"
26#else
27#   include "sdlapp.h"
28#   include "sdlinput.h"
29#endif
30
31#if defined _WIN32
32#   undef main /* FIXME: still needed? */
33#endif
34
35int main(int argc, char **argv)
36{
37#if defined __CELLOS_LV2__
38    Ps3App app("Quad", ivec2(640, 480), 60.0f);
39#elif defined HAVE_GLES_2X
40    EglApp app("Quad", ivec2(640, 480), 60.0f);
41#else
42    SdlApp app("Quad", ivec2(640, 480), 60.0f);
43#endif
44
45    /* Register an input driver and some debug stuff */
46#if !defined HAVE_GLES_2X
47    new SdlInput();
48#endif
49    //new DebugFps(20, 20);
50    new DebugQuad();
51
52    app.Run();
53
54    return EXIT_SUCCESS;
55}
56
Note: See TracBrowser for help on using the repository browser.