Creates a new view for the given camera XCamera.

Namespace:  SGP.XSpace
Assembly:  SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825

Syntax

C#
public XCameraViewport CreateViewport(
	XCamera camera,
	float xRelative,
	float yRelative,
	float widthRelative,
	float heightRelative
)

Parameters

camera
Type: SGP.XSpace..::.XCamera
The source camera.
xRelative
Type: System..::.Single
The relative X coordinate of the left upper corner.
yRelative
Type: System..::.Single
The relative Y coordinate of the left upper corner.
widthRelative
Type: System..::.Single
The viewport width in the relative coordinate.
heightRelative
Type: System..::.Single
The viewport width in the relative coordinate.

Return Value

Creates a new XCameraViewport viewport instance with the camera.

Exceptions

ExceptionCondition
System..::.ArgumentNullException camera is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also