Пример #1
0
        /// <summary>Load a cursor from embedded resource, decompress, decode, and upload to VRAM.</summary>
        public static CursorTexture loadCursor(this IRenderDevice renderDevice, eCursor cursor, int idealSize = 32)
        {
            switch (cursor)
            {
            case eCursor.None:
            default:
                return(null);

            case eCursor.Arrow:
                return(renderDevice.loadStatic("arrow", idealSize));

            case eCursor.Beam:
                return(renderDevice.loadStatic("beam", idealSize));

            case eCursor.Hand:
                return(renderDevice.loadStatic("hand", idealSize));

            case eCursor.Working:
                return(renderDevice.loadAnimated("working", idealSize));

            case eCursor.Busy:
                return(renderDevice.loadAnimated("busy", idealSize));
            }
        }