Пример #1
0
 public MyCameraController2(float width, float height, Ellipsoid shape)
 {
     _shape = shape;
     //_camera = new Camera(width, height);
     _windowWidth  = width;
     _windowHeight = height;
     UpdatePerspectiveMatrix();
     //UpdateViewMatrix();
 }
Пример #2
0
 public MyCameraController(float width, float height)
 {
     //默认为此椭球体
     _shape        = Ellipsoid.ScaledWgs842;
     _windowWidth  = width;
     _windowHeight = height;
     UpdatePerspectiveMatrix();
     // UpdateViewMatrix();
 }
Пример #3
0
 public MyCameraController2(float width, float height)
 {
     //默认为此椭球体
     _shape        = Ellipsoid.ScaledWgs842;
     _windowWidth  = width;
     _windowHeight = height;
     UpdatePerspectiveMatrix();
     //更新视口矩阵
     UpdateViewPortTransformMaxtrix();
     //UpdateViewMatrix();
     this.LookAtInfo = new LookAt(0, 0, 0, 0, 0, 1);
     UpdateCamera();
 }