gameplay-main-windows.cpp 518 B

12345678910111213141516171819202122232425
  1. #ifdef WIN32
  2. #include "gameplay.h"
  3. using namespace gameplay;
  4. #ifndef _WINDOWS_
  5. #define WIN32_LEAN_AND_MEAN
  6. #include <windows.h>
  7. #endif
  8. /**
  9. * Main entry point.
  10. */
  11. extern "C" int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR cmdLine, int cmdShow)
  12. {
  13. Game* game = Game::getInstance();
  14. Platform* platform = Platform::create(game);
  15. GP_ASSERT(platform);
  16. int result = platform->enterMessagePump();
  17. delete platform;
  18. return result;
  19. }
  20. #endif