Skip to content

Commit

Permalink
Add SDL_GDKRunApp
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo authored Jun 27, 2022
1 parent 3da884c commit dd7503d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/SDL2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,15 @@ public static extern int SDL_WinRTRunApp(
IntPtr reserved
);

/* Use this function with GDK/GDKX to call your C# Main() function!
* Only available in SDL 2.24.0 or higher.
*/
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern int SDL_GDKRunApp(
SDL_main_func mainFunction,
IntPtr reserved
);

/* Use this function with iOS to call your C# Main() function!
* Only available in SDL 2.0.10 or higher.
*/
Expand Down

0 comments on commit dd7503d

Please sign in to comment.