IRenderTarget.CreateViewport

CreateViewport(Camera, Vector3, RelativeRectangle)

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

public Viewport CreateViewport(Camera camera, Vector3 backgroundColor, RelativeRectangle rect)
ParameterTypeDescription
cameraCameraThe camera
backgroundColorVector3The background of the viewport
rectRelativeRectanglePosition and size of the viewport

See Also


CreateViewport(Camera, RelativeRectangle)

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

public Viewport CreateViewport(Camera camera, RelativeRectangle rect)
ParameterTypeDescription
cameraCameraThe camera
rectRelativeRectanglePosition and size of the viewport

See Also


CreateViewport(Camera)

Create a viewport in specified camera perspective.

public Viewport CreateViewport(Camera camera)
ParameterTypeDescription
cameraCameraThe camera

See Also