public Version(global::SharpSDL.Version _0) { __Instance = Marshal.AllocHGlobal(sizeof(global::SharpSDL.Version.__Internal)); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; *((global::SharpSDL.Version.__Internal *)__Instance) = *((global::SharpSDL.Version.__Internal *)_0.__Instance); }
/// <summary>Get the version of SDL that is linked against your program.</summary> /// <remarks> /// <para>If you are linking to SDL dynamically, then it is possible that the</para> /// <para>current version will be different than the version you compiled against.</para> /// <para>This function returns the current version, while SDL_VERSION() is a</para> /// <para>macro that tells you what version you compiled with.</para> /// <para>This function may be called safely at any time, even before SDL_Init().</para> /// <para>SDL_VERSION</para> /// </remarks> public static void GetVersion(global::SharpSDL.Version ver) { var __arg0 = ReferenceEquals(ver, null) ? global::System.IntPtr.Zero : ver.__Instance; __Internal.GetVersion(__arg0); }