You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

61 regels
1.3 KiB

  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. #if defined HAVE_CONFIG_H
  11. # include "config.h"
  12. #endif
  13. #include "core.h"
  14. #include "lolgl.h"
  15. #include "loldebug.h"
  16. using namespace std;
  17. using namespace lol;
  18. #if defined __CELLOS_LV2__
  19. # include "platform/ps3/ps3app.h"
  20. #elif defined HAVE_GLES_2X
  21. # include "eglapp.h"
  22. #else
  23. # include "platform/sdl/sdlapp.h"
  24. # include "platform/sdl/sdlinput.h"
  25. #endif
  26. #if USE_SDL && defined __APPLE__
  27. # include <SDL_main.h>
  28. #endif
  29. #if defined _WIN32
  30. # undef main /* FIXME: still needed? */
  31. #endif
  32. int main(int argc, char **argv)
  33. {
  34. #if defined __CELLOS_LV2__
  35. Ps3App app("Quad", ivec2(640, 480), 60.0f);
  36. #elif defined HAVE_GLES_2X
  37. EglApp app("Quad", ivec2(640, 480), 60.0f);
  38. #else
  39. SdlApp app("Quad", ivec2(640, 480), 60.0f);
  40. #endif
  41. /* Register an input driver and some debug stuff */
  42. #if !defined HAVE_GLES_2X
  43. new SdlInput();
  44. #endif
  45. new DebugFps(5, 5);
  46. new DebugQuad();
  47. app.Run();
  48. return EXIT_SUCCESS;
  49. }