C# Class CSharpGL.ArcBallManipulater

Rotate model using arc-ball method.
Inheritance: Manipulater, IMouseHandler
ファイルを表示 Open project: bitzhuwei/CSharpGL

Public Methods

Method Description
ArcBallManipulater ( MouseButtons bindingMouseButtons = MouseButtons.Left ) : System

Rotate model using arc-ball method.

Bind ( ICamera camera, ICanvas canvas ) : void

GetRotationMatrix ( ) : CSharpGL.mat4

Unbind ( ) : void

Private Methods

Method Description
GetArcBallPosition ( int x, int y ) : vec3
IMouseHandler ( object sender, MouseEventArgs e ) : void
SetBounds ( int width, int height ) : void
SetCamera ( vec3 position, vec3 target, vec3 up ) : void

Method Details

ArcBallManipulater() public method

Rotate model using arc-ball method.
public ArcBallManipulater ( MouseButtons bindingMouseButtons = MouseButtons.Left ) : System
bindingMouseButtons MouseButtons
return System

Bind() public method

public Bind ( ICamera camera, ICanvas canvas ) : void
camera ICamera
canvas ICanvas
return void

GetRotationMatrix() public method

public GetRotationMatrix ( ) : CSharpGL.mat4
return CSharpGL.mat4

Unbind() public method

public Unbind ( ) : void
return void