src/core/winrt/SDL_winrtapp_common.cpp
author David Ludwig <dludwig@pobox.com>
Sun, 22 Sep 2013 23:17:25 -0400
changeset 8532 0f4be71aa156
child 8582 c3e9a2b93517
permissions -rw-r--r--
WinRT: added missing files
dludwig@8532
     1
dludwig@8532
     2
#include <SDL_system.h>
dludwig@8532
     3
#include "SDL_winrtapp_direct3d.h"
dludwig@8532
     4
#include "SDL_winrtapp_xaml.h"
dludwig@8532
     5
dludwig@8532
     6
int (*WINRT_SDLAppEntryPoint)(int, char **) = NULL;
dludwig@8532
     7
dludwig@8532
     8
extern "C" DECLSPEC int
dludwig@8532
     9
SDL_WinRTRunApp(int (*mainFunction)(int, char **), void * xamlBackgroundPanel)
dludwig@8532
    10
{
dludwig@8532
    11
    if (xamlBackgroundPanel) {
dludwig@8532
    12
        return SDL_WinRTInitXAMLApp(mainFunction, xamlBackgroundPanel);
dludwig@8532
    13
    } else {
dludwig@8532
    14
        return SDL_WinRTInitNonXAMLApp(mainFunction);
dludwig@8532
    15
    }
dludwig@8532
    16
}