public class Viewport
extends java.lang.Object
IRenderTarget
contains at least one viewport for rendering the scene.Modifier and Type | Method and 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.
|
public void setFrustum(Frustum value)
Viewport
value
- New valuepublic boolean getEnabled()
public void setEnabled(boolean value)
value
- New valuepublic IRenderTarget getRenderTarget()
public RelativeRectangle getArea()
public void setArea(RelativeRectangle value)
value
- New valuepublic int getZOrder()
public void setZOrder(int value)
value
- New valuepublic java.awt.Color getBackgroundColor()
public void setBackgroundColor(java.awt.Color value)
value
- New valuepublic float getDepthClear()
public void setDepthClear(float value)
value
- New valuepublic Viewport clone()
clone
in class java.lang.Object