Exemplo n.º 1
0
        public Camera()
        {
            Viewport = new Viewport();
            Track    = new Track();

            Track.Parent               = _panTrack = new PanTrack(Track);
            Track.Parent.Parent        = _orbitTrack = new OrbitTrack(Track);
            Track.Parent.Parent.Parent = _zoomTrack = new ZoomTrack(Track);

            _zoomTrack.Zoom(-5f);

            Viewport.ProjectionChanged += viewport_ProjectionChanged;

            _orbitTrack.Update(70, 60);

            Update(0f, 0f);
        }
Exemplo n.º 2
0
        public Camera( )
        {
            viewport = new Viewport( );
            track    = new Track( );

            track.Parent               = panTrack = new PanTrack(track);
            track.Parent.Parent        = orbitTrack = new OrbitTrack(track);
            track.Parent.Parent.Parent = zoomTrack = new ZoomTrack(track);

            zoomTrack.Zoom(-5f);

            viewport.ProjectionChanged += viewport_ProjectionChanged;

            orbitTrack.Update(70, 60);

            this.Update( );
        }
Exemplo n.º 3
0
        public Camera()
        {
            viewport = new Viewport();
            track = new Track();

            track.Parent = panTrack = new PanTrack(track);
            track.Parent.Parent = orbitTrack = new OrbitTrack(track);
            track.Parent.Parent.Parent = zoomTrack = new ZoomTrack(track);

            zoomTrack.Zoom(-5f);

            viewport.ProjectionChanged += viewport_ProjectionChanged;

            orbitTrack.Update(70, 60);
            zoomTrack.Update(-5);

            this.Update();
        }