src/core/winrt/SDL_winrtapp_common.cpp
author Sam Lantinga <slouken@libsdl.org>
Sun, 09 Mar 2014 11:06:11 -0700
changeset 8582 c3e9a2b93517
parent 8532 0f4be71aa156
child 8616 ec011c16e2fd
permissions -rw-r--r--
Fixed line endings on WinRT source code
slouken@8582
     1
slouken@8582
     2
#include <SDL_system.h>
slouken@8582
     3
#include "SDL_winrtapp_direct3d.h"
slouken@8582
     4
#include "SDL_winrtapp_xaml.h"
slouken@8582
     5
slouken@8582
     6
int (*WINRT_SDLAppEntryPoint)(int, char **) = NULL;
slouken@8582
     7
dludwig@8532
     8
extern "C" DECLSPEC int
slouken@8582
     9
SDL_WinRTRunApp(int (*mainFunction)(int, char **), void * xamlBackgroundPanel)
slouken@8582
    10
{
slouken@8582
    11
    if (xamlBackgroundPanel) {
slouken@8582
    12
        return SDL_WinRTInitXAMLApp(mainFunction, xamlBackgroundPanel);
slouken@8582
    13
    } else {
slouken@8582
    14
        return SDL_WinRTInitNonXAMLApp(mainFunction);
slouken@8582
    15
    }
slouken@8582
    16
}