CSharpGL.PickableRenderer.GetPickedGeometry C# (CSharp) Method

GetPickedGeometry() public method

public GetPickedGeometry ( RenderEventArgs arg, uint stageVertexId, int x, int y ) : PickedGeometry
arg RenderEventArgs
stageVertexId uint
x int mouse position(Left Down is (0, 0)).
y int mouse position(Left Down is (0, 0)).
return PickedGeometry
        public PickedGeometry GetPickedGeometry(
            RenderEventArgs arg,
            uint stageVertexId,
            int x, int y)
        {
            InnerPickableRenderer renderer = this.innerPickableRenderer;
            if (renderer == null) { throw new Exception("InnerPickableRenderer is null!"); }

            PickedGeometry result = this.innerPickableRenderer.GetPickedGeometry(arg, stageVertexId, x, y);
            if (result != null)
            {
                result.FromRenderer = this;
            }

            return result;
        }
    }