main-linux.cpp 340 B

1234567891011121314151617181920
  1. #ifdef __linux__
  2. #include "gameplay.h"
  3. using namespace gameplay;
  4. /**
  5. * Main entry point.
  6. */
  7. int main(int argc, char** argv)
  8. {
  9. Game* game = Game::getInstance();
  10. Platform* platform = Platform::create(game);
  11. GP_ASSERT(platform);
  12. int result = platform->enterMessagePump();
  13. delete platform;
  14. return result;
  15. }
  16. #endif