C# Class CSharpGL.ArcBallManipulater

Rotate model using arc-ball method.
Inheritance: Manipulater, IMouseHandler
Afficher le fichier Open project: bitzhuwei/CSharpGL

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

Bind() public méthode

public Bind ( ICamera camera, ICanvas canvas ) : void
camera ICamera
canvas ICanvas
Résultat void

GetRotationMatrix() public méthode

public GetRotationMatrix ( ) : CSharpGL.mat4
Résultat CSharpGL.mat4

Unbind() public méthode

public Unbind ( ) : void
Résultat void