Class Viewport


  • public class Viewport
    extends java.lang.Object
    A IRenderTarget contains at least one viewport for rendering the scene.
    • Method Summary

      Modifier and Type Method Description
      Viewport clone()  
      RelativeRectangle getArea()
      Gets the area of the viewport in render target.
      java.awt.Color getBackgroundColor()
      Gets the background color of the viewport.
      float getDepthClear()
      Gets the depth value used when clear the viewport with depth buffer bit set.
      boolean getEnabled()
      Enable or disable this viewport.
      Frustum getFrustum()
      Gets the camera of this Viewport
      IRenderTarget getRenderTarget()
      Gets the render target that created this viewport.
      int getZOrder()
      Gets the Z-order of the viewport.
      void setArea​(RelativeRectangle value)
      Sets the area of the viewport in render target.
      void setBackgroundColor​(java.awt.Color value)
      Sets the background color of the viewport.
      void setDepthClear​(float value)
      Sets the depth value used when clear the viewport with depth buffer bit set.
      void setEnabled​(boolean value)
      Enable or disable this viewport.
      void setFrustum​(Frustum value)
      Sets the camera of this Viewport
      void setZOrder​(int value)
      Sets the Z-order of the viewport.
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getFrustum

        public Frustum getFrustum()
        Gets the camera of this Viewport
      • setFrustum

        public void setFrustum​(Frustum value)
        Sets the camera of this Viewport
        Parameters:
        value - New value
      • getEnabled

        public boolean getEnabled()
        Enable or disable this viewport.
      • setEnabled

        public void setEnabled​(boolean value)
        Enable or disable this viewport.
        Parameters:
        value - New value
      • getRenderTarget

        public IRenderTarget getRenderTarget()
        Gets the render target that created this viewport.
      • getArea

        public RelativeRectangle getArea()
        Gets the area of the viewport in render target.
      • setArea

        public void setArea​(RelativeRectangle value)
        Sets the area of the viewport in render target.
        Parameters:
        value - New value
      • getZOrder

        public int getZOrder()
        Gets the Z-order of the viewport.
      • setZOrder

        public void setZOrder​(int value)
        Sets the Z-order of the viewport.
        Parameters:
        value - New value
      • getBackgroundColor

        public java.awt.Color getBackgroundColor()
        Gets the background color of the viewport.
      • setBackgroundColor

        public void setBackgroundColor​(java.awt.Color value)
        Sets the background color of the viewport.
        Parameters:
        value - New value
      • getDepthClear

        public float getDepthClear()
        Gets the depth value used when clear the viewport with depth buffer bit set.
      • setDepthClear

        public void setDepthClear​(float value)
        Sets the depth value used when clear the viewport with depth buffer bit set.
        Parameters:
        value - New value
      • clone

        public Viewport clone()
        Overrides:
        clone in class java.lang.Object