Esempio n. 1
0
        public void Initialize(int viewWidth, int viewHeight, IntPtr handle, Form form, DXConfigClass DXConfig)
        {
            DestroyAllResources();

            _D3D = new D3DClass();
            _D3D.Initialize(viewWidth, viewHeight, handle, form, DXConfig);
            Camera          = new DXPerspectiveCamera(_config.FOV, (float)viewWidth, (float)viewHeight, _config.ScreenNear, _config.ScreenDepth);
            CameraControler = new DXOrbitControler(Camera, (form as ArbaroMainForm).renderCtrl);
            //CameraControler = new DXArcballControler(Camera, (form as ArbaroMainForm).renderCtrl);
        }
Esempio n. 2
0
        public void Initialize(int viewWidth, int viewHeight, IntPtr handle, Form form, DXConfigClass DXConfig)
        {
            DestroyAllResources();

            _D3D = new D3DClass();
            _D3D.Initialize(viewWidth, viewHeight, handle, form, DXConfig);
            Camera = new DXPerspectiveCamera(_config.FOV, (float)viewWidth, (float)viewHeight, _config.ScreenNear, _config.ScreenDepth);
            CameraControler = new DXOrbitControler(Camera, (form as ArbaroMainForm).renderCtrl);
            //CameraControler = new DXArcballControler(Camera, (form as ArbaroMainForm).renderCtrl);
        }