コード例 #1
0
ファイル: SDLMouse.cs プロジェクト: kthompson/game-engine
        /// <summary>Create a system cursor.</summary>
/// <remarks>SDL_FreeCursor()</remarks>
        public static global::SharpSDL.Cursor CreateSystemCursor(global::SharpSDL.SystemCursor id)
        {
            var __ret = __Internal.CreateSystemCursor(id);

            global::SharpSDL.Cursor __result0;
            if (__ret == IntPtr.Zero)
            {
                __result0 = null;
            }
            else if (global::SharpSDL.Cursor.NativeToManagedMap.ContainsKey(__ret))
            {
                __result0 = (global::SharpSDL.Cursor)global::SharpSDL.Cursor.NativeToManagedMap[__ret];
            }
            else
            {
                __result0 = global::SharpSDL.Cursor.__CreateInstance(__ret);
            }
            return(__result0);
        }
コード例 #2
0
ファイル: SDLMouse.cs プロジェクト: kthompson/game-engine
 internal static extern global::System.IntPtr CreateSystemCursor(global::SharpSDL.SystemCursor id);