Viewport
Inheritance: java.lang.Object
public class Viewport
A IRenderTarget contains at least one viewport for rendering the scene.
Methods
| Method | Description |
|---|---|
| clone() | |
| equals(Object arg0) | |
| getArea() | Gets the area of the viewport in render target. |
| getBackgroundColor() | Gets the background color of the viewport. |
| getClass() | |
| getDepthClear() | Gets the depth value used when clear the viewport with depth buffer bit set. |
| getEnabled() | Enable or disable this viewport. |
| getFrustum() | Gets the camera of this Viewport |
| getRenderTarget() | Gets the render target that created this viewport. |
| getZOrder() | Gets the Z-order of the viewport. |
| hashCode() | |
| notify() | |
| notifyAll() | |
| setArea(RelativeRectangle value) | Sets the area of the viewport in render target. |
| setBackgroundColor(Vector3 value) | Sets the background color of the viewport. |
| setDepthClear(float value) | Sets the depth value used when clear the viewport with depth buffer bit set. |
| setEnabled(boolean value) | Enable or disable this viewport. |
| setFrustum(Frustum value) | Sets the camera of this Viewport |
| setZOrder(int value) | Sets the Z-order of the viewport. |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
clone()
public Viewport clone()
Returns: Viewport
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
getArea()
public RelativeRectangle getArea()
Gets the area of the viewport in render target.
Returns: RelativeRectangle - the area of the viewport in render target.
getBackgroundColor()
public Vector3 getBackgroundColor()
Gets the background color of the viewport.
Returns: Vector3 - the background color of the viewport.
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getDepthClear()
public float getDepthClear()
Gets the depth value used when clear the viewport with depth buffer bit set.
Returns: float - the depth value used when clear the viewport with depth buffer bit set.
getEnabled()
public boolean getEnabled()
Enable or disable this viewport.
Returns: boolean - Enable or disable this viewport.
getFrustum()
public Frustum getFrustum()
Gets the camera of this Viewport
Returns: Frustum - the camera of this Viewport
getRenderTarget()
public IRenderTarget getRenderTarget()
Gets the render target that created this viewport.
Returns: IRenderTarget - the render target that created this viewport.
getZOrder()
public int getZOrder()
Gets the Z-order of the viewport.
Returns: int - the Z-order of the viewport.
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
setArea(RelativeRectangle value)
public void setArea(RelativeRectangle value)
Sets the area of the viewport in render target.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | RelativeRectangle | New value |
setBackgroundColor(Vector3 value)
public void setBackgroundColor(Vector3 value)
Sets the background color of the viewport.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | Vector3 | New value |
setDepthClear(float value)
public void setDepthClear(float value)
Sets the depth value used when clear the viewport with depth buffer bit set.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | float | New value |
setEnabled(boolean value)
public void setEnabled(boolean value)
Enable or disable this viewport.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean | New value |
setFrustum(Frustum value)
public void setFrustum(Frustum value)
Sets the camera of this Viewport
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | Frustum | New value |
setZOrder(int value)
public void setZOrder(int value)
Sets the Z-order of the viewport.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int | New value |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | long | |
| arg1 | int |