Class Camera.Ortho

  • Enclosing class:
    Camera

    public static class Camera.Ortho
    extends Object
    The configuration used to call glOrtho
    • Field Summary

      Fields 
      Modifier and Type Field Description
      double bottom
      the latest value used to invoke glOrtho
      double far
      the latest value used to invoke glOrtho
      double left
      the latest value used to invoke glOrtho
      double near
      the latest value used to invoke glOrtho
      double right
      the latest value used to invoke glOrtho
      double top
      the latest value used to invoke glOrtho
    • Constructor Summary

      Constructors 
      Constructor Description
      Ortho()  
    • Field Detail

      • left

        public double left
        the latest value used to invoke glOrtho
      • right

        public double right
        the latest value used to invoke glOrtho
      • bottom

        public double bottom
        the latest value used to invoke glOrtho
      • top

        public double top
        the latest value used to invoke glOrtho
      • near

        public double near
        the latest value used to invoke glOrtho
      • far

        public double far
        the latest value used to invoke glOrtho
    • Constructor Detail

      • Ortho

        public Ortho()
    • Method Detail

      • update

        public void update​(double left,
                           double right,
                           double bottom,
                           double top,
                           double near,
                           double far)
      • apply

        public void apply​(IPainter painter)
        Applies orthogonal projection only if parameters are valid (i.e. not zero)