IRenderTarget
All Implemented Interfaces: java.io.Closeable
public interface IRenderTarget extends Closeable
The base interface of render target
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
camera | Camera | The 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:
Parameter | Type | Description |
---|---|---|
camera | Camera | The camera |
rect | RelativeRectangle | Position 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:
Parameter | Type | Description |
---|---|---|
camera | Camera | The camera |
backgroundColor | Vector3 | The background of the viewport |
rect | RelativeRectangle | Position 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:
Parameter | Type | Description |
---|---|---|
value | Vector2 | New value |