Beispiel #1
0
 public void Update(IViewProject viewProject)
 {
     View = viewProject.View;
     Projection = viewProject.Projection;
     
     BoundingFrustum = new BoundingFrustum(View * Projection);
     World = Matrix.Invert(View);
 }
Beispiel #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));
        }
Beispiel #3
0
 public void Render(Renderer renderer, IViewProject viewProject)
 {
     throw new System.NotImplementedException();
 }
Beispiel #4
0
 public void Render(Renderer renderer, IViewProject viewProject)
 {
     renderer.Render(viewProject, Text);
 }
Beispiel #5
0
 public override void Render(Renderer renderer, IViewProject viewProject)
 {
     renderer.Render(viewProject, Quad);
     base.Render(renderer, viewProject);
 }
 public override void Render(Renderer renderer, IViewProject viewProject)
 {
     OrbitCamera.Render(renderer, viewProject);
     base.Render(renderer, viewProject);
 }
 public override void Render(Renderer renderer, IViewProject viewProject)
 {
     View = OrbitCamera.View;
     World = OrbitCamera.World;
     base.Render(renderer, viewProject);
 }
Beispiel #8
0
 public Frustum(Size size, IViewProject viewProject)
 {
     Width = size.Width;
     Height = size.Height;
     Update(viewProject);
 }