mirror of
https://github.com/Ryujinx/SDL2-CS.git
synced 2024-12-23 09:35:39 +00:00
SDL_WinRTRunApp
This commit is contained in:
parent
f7dbc10af5
commit
689dcf5342
14
src/SDL2.cs
14
src/SDL2.cs
|
@ -110,6 +110,20 @@ namespace SDL2
|
|||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern void SDL_SetMainReady();
|
||||
|
||||
/// <summary>
|
||||
/// This is used as a function pointer to a C-style main() function for SDL_WinRTRunApp().
|
||||
/// </summary>
|
||||
public delegate int SDL_WinRT_mainFunction(int argc, IntPtr[] argv);
|
||||
|
||||
/// <summary>
|
||||
/// Initializes and launches an SDL/WinRT application. Use with UWP!
|
||||
/// </summary>
|
||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern int SDL_WinRTRunApp(
|
||||
SDL_WinRT_mainFunction mainFunction,
|
||||
IntPtr reserved
|
||||
);
|
||||
|
||||
#endregion
|
||||
|
||||
#region SDL.h
|
||||
|
|
Loading…
Reference in a new issue