mirror of
https://github.com/encounter/SDL.git
synced 2025-12-18 17:35:39 +00:00
WinRT: unified the two, public, app-init functions
This function, SDL_WinRTRunApp, can be used to help launch either XAML or non-XAML/Direct3D-only based apps.
This commit is contained in:
@@ -155,21 +155,6 @@ extern DECLSPEC const wchar_t * SDLCALL SDL_WinRTGetFSPathUNICODE(SDL_WinRT_Path
|
||||
*/
|
||||
extern DECLSPEC const char * SDLCALL SDL_WinRTGetFSPathUTF8(SDL_WinRT_Path pathType);
|
||||
|
||||
#ifdef __cplusplus_winrt
|
||||
/**
|
||||
* \brief Initializes a WinRT and XAML based application.
|
||||
*
|
||||
* \param backgroundPanel The XAML background panel to draw onto and receive
|
||||
* events from.
|
||||
* \param mainFunction The SDL app's C-style main().
|
||||
* \ret 0 on success, -1 on failure. On failure, use SDL_GetError to retrieve more
|
||||
* information on the failure.
|
||||
*/
|
||||
/* TODO, WinRT: consider making SDL_WinRTInitXAMLApp accept a void pointer to IUnknown, rather than a C++/CX reference */
|
||||
extern DECLSPEC int SDLCALL SDL_WinRTInitXAMLApp(Platform::Object^ backgroundPanel, int (*mainFunction)(int, char **));
|
||||
|
||||
#endif // ifdef __cplusplus_winrt
|
||||
|
||||
#endif /* __WINRT__ */
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user