CreateViewport

IRenderTarget.CreateViewport method (1 of 3)

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

public Viewport CreateViewport(Camera camera, Color backgroundColor, RelativeRectangle rect)
Parameter Type Description
camera Camera The camera
backgroundColor Color The background of the viewport
rect RelativeRectangle Position and size of the viewport

See Also


IRenderTarget.CreateViewport method (2 of 3)

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

public Viewport CreateViewport(Camera camera, RelativeRectangle rect)
Parameter Type Description
camera Camera The camera
rect RelativeRectangle Position and size of the viewport

See Also


IRenderTarget.CreateViewport method (3 of 3)

Create a viewport in specified camera perspective.

public Viewport CreateViewport(Camera camera)
Parameter Type Description
camera Camera The camera

See Also