コード例 #1
0
        public ProjectionCursorControl(string name, ICursorInput input, IView inputView, ISceneNode projectionSceneNode, ProjectionManager projectionManager)
            : base(name, input)
        {
            InputView         = inputView;
            Target            = projectionSceneNode;
            _projectionAction = position =>
            {
                ProjectionManager.IOptionsController <Vector2> controller = projectionManager.ProjectFromPosition(inputView, position).To(projectionSceneNode);
                if (RaycastClient != null)
                {
                    controller = controller.ByRaycast().ForDrawClient(RaycastClient);
                }

                return(controller);
            };
        }
コード例 #2
0
ファイル: CursorControlBase.cs プロジェクト: ReMinoer/Glyph
 protected CursorControlBase(string name, ICursorInput input)
 {
     Name  = name;
     Input = input;
 }
コード例 #3
0
 public ProjectionCursorControl(ICursorInput input, IView inputView, ISceneNode projectionSceneNode, ProjectionManager projectionManager)
     : this(null, input, inputView, projectionSceneNode, projectionManager)
 {
 }
コード例 #4
0
 public ProjectionCursorControl(ICursorInput input, IView inputView, IView projectionView, ProjectionManager projectionManager)
     : this(null, input, inputView, projectionView, projectionManager)
 {
 }