Exemplo n.º 1
0
 public void Update(IViewProject viewProject)
 {
     View = viewProject.View;
     Projection = viewProject.Projection;
     
     BoundingFrustum = new BoundingFrustum(View * Projection);
     World = Matrix.Invert(View);
 }
Exemplo n.º 2
0
        public virtual void Render(Renderer renderer, IViewProject viewProject)
        {
            Frustum.Update(this);

            renderer.Render(viewProject, new Sphere(World.Translation, 1, Color));
            renderer.Render(viewProject, Frustum);

            if (Highlight)
                renderer.Render(viewProject, new Circle2D(World.Translation, 60, 20, Color));
        }
Exemplo n.º 3
0
 public void Render(Renderer renderer, IViewProject viewProject)
 {
     throw new System.NotImplementedException();
 }
Exemplo n.º 4
0
 public void Render(Renderer renderer, IViewProject viewProject)
 {
     renderer.Render(viewProject, Text);
 }
Exemplo n.º 5
0
 public override void Render(Renderer renderer, IViewProject viewProject)
 {
     renderer.Render(viewProject, Quad);
     base.Render(renderer, viewProject);
 }
Exemplo n.º 6
0
 public override void Render(Renderer renderer, IViewProject viewProject)
 {
     OrbitCamera.Render(renderer, viewProject);
     base.Render(renderer, viewProject);
 }
Exemplo n.º 7
0
 public override void Render(Renderer renderer, IViewProject viewProject)
 {
     View = OrbitCamera.View;
     World = OrbitCamera.World;
     base.Render(renderer, viewProject);
 }
Exemplo n.º 8
0
 public Frustum(Size size, IViewProject viewProject)
 {
     Width = size.Width;
     Height = size.Height;
     Update(viewProject);
 }