Esempio n. 1
0
 public override void Render()
 {
     if (renderPhysicsDebug)
     {
         GL.Disable(EnableCap.CullFace);
         GL.Enable(EnableCap.PolygonOffsetFill);
         GL.Enable(EnableCap.DepthTest);
         GL.PolygonOffset(2f, 2f);
         PhysicsWorld.DrawDebug();
         GL.Disable(EnableCap.PolygonOffsetFill);
         GL.Enable(EnableCap.CullFace);
     }
     if (boundingBoxes)
     {
         for (int i = 0; i < RenderManager.GeometryList.Count; i++)
         {
             RenderBoundingBox(RenderManager.GeometryList[i].GetWorldBoundingBox());
         }
     }
     if (camMode == CamModes.Grab)
     {
         foreach (Geometry g in axisArrows)
         {
             g.Render(Environment, Camera);
         }
     }
 }