| 12345678910111213141516171819202122232425 |
- #ifdef WIN32
- #include "gameplay.h"
- using namespace gameplay;
- #ifndef _WINDOWS_
- #define WIN32_LEAN_AND_MEAN
- #include <windows.h>
- #endif
- /**
- * Main entry point.
- */
- extern "C" int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR cmdLine, int cmdShow)
- {
- Game* game = Game::getInstance();
- Platform* platform = Platform::create(game);
- GP_ASSERT(platform);
- int result = platform->enterMessagePump();
- delete platform;
- return result;
- }
- #endif
|