CSharpGL.UICursor.UICursor C# (CSharp) Метод

UICursor() публичный Метод

opengl UI for Cursor. Note: put this as the last one of SceneRootUI's children.
public UICursor ( PointF focalPoint, Size size, string cursorBitmap = "" ) : System
focalPoint System.Drawing.PointF in percentage(0.00 ~ 1.00)..X ranges from 0(left) to 1(right). .Y ranges from 0(bottom) to 1(top).
size System.Drawing.Size
cursorBitmap string
Результат System
        public UICursor(PointF focalPoint,
            Size size, string cursorBitmap = "")
            : base(AnchorStyles.Left | AnchorStyles.Top,
                    new Padding(0, 0, 0, 0), size, -Math.Max(size.Width, size.Height), Math.Max(size.Width, size.Height))
        {
            this.FocalPoint = focalPoint;
            TextureRenderer renderer = TextureRenderer.Create(cursorBitmap);
            renderer.StateList.Add(new BlendState(BlendingSourceFactor.SourceAlpha, BlendingDestinationFactor.OneMinusSourceAlpha));
            this.Renderer = renderer;
        }