SDL_winrtapp_common.cpp 428 B

12345678910111213141516
  1. #include <SDL_system.h>
  2. #include "SDL_winrtapp_direct3d.h"
  3. #include "SDL_winrtapp_xaml.h"
  4. int (*WINRT_SDLAppEntryPoint)(int, char **) = NULL;
  5. extern "C" DECLSPEC int
  6. SDL_WinRTRunApp(int (*mainFunction)(int, char **), void * xamlBackgroundPanel)
  7. {
  8. if (xamlBackgroundPanel) {
  9. return SDL_WinRTInitXAMLApp(mainFunction, xamlBackgroundPanel);
  10. } else {
  11. return SDL_WinRTInitNonXAMLApp(mainFunction);
  12. }
  13. }