コード例 #1
0
ファイル: ModelCamera.cs プロジェクト: remixod/sharpwow
 public ModelCamera(Control focusControl, ControlRender dev)
 {
     mControl = focusControl;
     focusControl.MouseClick += (obj, e) => focusControl.Focus();
     mDevice = dev.Device;
     mInput = dev.InputManager;
     mDevice.SetTransform(TransformState.View, Matrix.LookAtLH(mPosition, Vector3.Zero, Vector3.UnitZ));
 }
コード例 #2
0
ファイル: ModelCamera.cs プロジェクト: corefan/sharpwow
 public ModelCamera(Control focusControl, ControlRender dev)
 {
     mControl = focusControl;
     focusControl.MouseClick += (obj, e) => focusControl.Focus();
     mDevice = dev.Device;
     mInput  = dev.InputManager;
     mDevice.SetTransform(TransformState.View, Matrix.LookAtLH(mPosition, Vector3.Zero, Vector3.UnitZ));
 }