From 689dcf53424d95806aea73c7ce83961cda30d438 Mon Sep 17 00:00:00 2001 From: Ethan Lee Date: Wed, 11 Oct 2017 09:15:17 -0400 Subject: [PATCH] SDL_WinRTRunApp --- src/SDL2.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/SDL2.cs b/src/SDL2.cs index 45bdf23..bd55906 100644 --- a/src/SDL2.cs +++ b/src/SDL2.cs @@ -110,6 +110,20 @@ namespace SDL2 [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern void SDL_SetMainReady(); + /// + /// This is used as a function pointer to a C-style main() function for SDL_WinRTRunApp(). + /// + public delegate int SDL_WinRT_mainFunction(int argc, IntPtr[] argv); + + /// + /// Initializes and launches an SDL/WinRT application. Use with UWP! + /// + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] + public static extern int SDL_WinRTRunApp( + SDL_WinRT_mainFunction mainFunction, + IntPtr reserved + ); + #endregion #region SDL.h