From 1ffb95fa748dc22497ec156a5b95e0f18e2f69bc Mon Sep 17 00:00:00 2001 From: Ethan Lee Date: Sun, 27 Oct 2013 05:02:20 -0400 Subject: [PATCH] SDL_GetPlatform --- src/SDL2.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/SDL2.cs b/src/SDL2.cs index 33256b9..103397b 100644 --- a/src/SDL2.cs +++ b/src/SDL2.cs @@ -177,6 +177,14 @@ namespace SDL2 #endregion + #region SDL_platform.h + + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] + [return : MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(LPUtf8StrMarshaler), MarshalCookie = LPUtf8StrMarshaler.LeaveAllocated)] + public static extern string SDL_GetPlatform(); + + #endregion + #region SDL_hints.h public const string SDL_HINT_FRAMEBUFFER_ACCELERATION =