Viewport

Inheritance: java.lang.Object

public class Viewport

A IRenderTarget contains at least one viewport for rendering the scene.

Methods

MethodDescription
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:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getArea()

public RelativeRectangle getArea()

Gets the area of the viewport in render target.

Returns: RelativeRectangle

getBackgroundColor()

public Vector3 getBackgroundColor()

Gets the background color of the viewport.

Returns: Vector3

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

getEnabled()

public boolean getEnabled()

Enable or disable this viewport.

Returns: boolean

getFrustum()

public Frustum getFrustum()

Gets the camera of this Viewport

Returns: Frustum

getRenderTarget()

public IRenderTarget getRenderTarget()

Gets the render target that created this viewport.

Returns: IRenderTarget

getZOrder()

public int getZOrder()

Gets the Z-order of the viewport.

Returns: int

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:

ParameterTypeDescription
valueRelativeRectangleNew value

setBackgroundColor(Vector3 value)

public void setBackgroundColor(Vector3 value)

Sets the background color of the viewport.

Parameters:

ParameterTypeDescription
valueVector3New value

setDepthClear(float value)

public void setDepthClear(float value)

Sets the depth value used when clear the viewport with depth buffer bit set.

Parameters:

ParameterTypeDescription
valuefloatNew value

setEnabled(boolean value)

public void setEnabled(boolean value)

Enable or disable this viewport.

Parameters:

ParameterTypeDescription
valuebooleanNew value

setFrustum(Frustum value)

public void setFrustum(Frustum value)

Sets the camera of this Viewport

Parameters:

ParameterTypeDescription
valueFrustumNew value

setZOrder(int value)

public void setZOrder(int value)

Sets the Z-order of the viewport.

Parameters:

ParameterTypeDescription
valueintNew value

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int