IRenderTarget

All Implemented Interfaces: java.io.Closeable

public interface IRenderTarget extends Closeable

The base interface of render target

Methods

MethodDescription
createViewport(Camera camera)Create a viewport in specified camera perspective.
createViewport(Camera camera, RelativeRectangle rect)Create a viewport with position/size in specified camera perspective.
createViewport(Camera camera, Vector3 backgroundColor, RelativeRectangle rect)Create a viewport with specified background color and position/size in specified camera perspective.
getSize()Gets the size of the render target.
getViewports()Gets all viewports that associated with this render target.
setSize(Vector2 value)Sets the size of the render target.

createViewport(Camera camera)

public abstract Viewport createViewport(Camera camera)

Create a viewport in specified camera perspective.

Parameters:

ParameterTypeDescription
cameraCameraThe camera

Returns: Viewport

createViewport(Camera camera, RelativeRectangle rect)

public abstract Viewport createViewport(Camera camera, RelativeRectangle rect)

Create a viewport with position/size in specified camera perspective.

Parameters:

ParameterTypeDescription
cameraCameraThe camera
rectRelativeRectanglePosition and size of the viewport

Returns: Viewport

createViewport(Camera camera, Vector3 backgroundColor, RelativeRectangle rect)

public abstract Viewport createViewport(Camera camera, Vector3 backgroundColor, RelativeRectangle rect)

Create a viewport with specified background color and position/size in specified camera perspective.

Parameters:

ParameterTypeDescription
cameraCameraThe camera
backgroundColorVector3The background of the viewport
rectRelativeRectanglePosition and size of the viewport

Returns: Viewport

getSize()

public abstract Vector2 getSize()

Gets the size of the render target.

Returns: Vector2

getViewports()

public abstract List<Viewport> getViewports()

Gets all viewports that associated with this render target.

Returns: java.util.List<com.aspose.threed.Viewport>

setSize(Vector2 value)

public abstract void setSize(Vector2 value)

Sets the size of the render target.

Parameters:

ParameterTypeDescription
valueVector2New value