Ejemplo n.º 1
0
        /// <summary>
        /// Renders the scene in a specific viewport
        /// </summary>
        /// <param name="vp">Viewport in which to render the scene</param>
        public void Render(Viewport vp)
        {
            if (vp != _viewport)
                CurrentViewport = vp;

            _owner.RenderScene(vp, this);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Draws the entire scene
        /// </summary>
        public void RenderScene(Viewport vp, Camera cam)
        {
            Clean();

            UpdateGraph();
            FindVisibleObjects(cam);
            _renderer.Render(vp, cam, _queue);
        }