src/core/winrt/SDL_winrtapp_common.cpp
changeset 8532 0f4be71aa156
child 8582 c3e9a2b93517
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/core/winrt/SDL_winrtapp_common.cpp	Sun Sep 22 23:17:25 2013 -0400
     1.3 @@ -0,0 +1,16 @@
     1.4 +
     1.5 +#include <SDL_system.h>
     1.6 +#include "SDL_winrtapp_direct3d.h"
     1.7 +#include "SDL_winrtapp_xaml.h"
     1.8 +
     1.9 +int (*WINRT_SDLAppEntryPoint)(int, char **) = NULL;
    1.10 +
    1.11 +extern "C" DECLSPEC int
    1.12 +SDL_WinRTRunApp(int (*mainFunction)(int, char **), void * xamlBackgroundPanel)
    1.13 +{
    1.14 +    if (xamlBackgroundPanel) {
    1.15 +        return SDL_WinRTInitXAMLApp(mainFunction, xamlBackgroundPanel);
    1.16 +    } else {
    1.17 +        return SDL_WinRTInitNonXAMLApp(mainFunction);
    1.18 +    }
    1.19 +}