No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 

83 líneas
1.3 KiB

  1. //
  2. // Lol Engine
  3. //
  4. // Copyright: (c) 2010-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. #if defined _XBOX
  14. # include <xtl.h>
  15. #endif
  16. #include "core.h"
  17. #include "lolgl.h"
  18. #include "xboxapp.h"
  19. #if defined _XBOX
  20. extern D3DDevice *g_d3ddevice;
  21. #endif
  22. namespace lol
  23. {
  24. /*
  25. * XboxApp implementation class
  26. */
  27. class XboxAppData
  28. {
  29. friend class XboxApp;
  30. private:
  31. #if defined _XBOX
  32. #endif
  33. };
  34. /*
  35. * Public XboxApp class
  36. */
  37. XboxApp::XboxApp(char const *title, ivec2 res, float fps) :
  38. data(new XboxAppData())
  39. {
  40. #if defined _XBOX
  41. Ticker::Setup(fps);
  42. Video::Setup(res);
  43. #endif
  44. }
  45. void XboxApp::ShowPointer(bool show)
  46. {
  47. ;
  48. }
  49. void XboxApp::Run()
  50. {
  51. while (!Ticker::Finished())
  52. {
  53. /* Tick the renderer, show the frame and clamp to desired framerate. */
  54. Ticker::TickDraw();
  55. #if defined _XBOX
  56. g_d3ddevice->Present(NULL, NULL, NULL, NULL);
  57. #endif
  58. }
  59. }
  60. XboxApp::~XboxApp()
  61. {
  62. #if defined _XBOX
  63. #endif
  64. delete data;
  65. }
  66. } /* namespace lol */