Creates new overlay view to the world world with new camera and adds it to the panel view collection.

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

Syntax

C#
public XCameraViewport CreateOverlayViewport(
	XWorld world,
	float xRelative,
	float yRelative,
	float widthRelative,
	float heightRelative
)

Parameters

world
Type: SGP.XSpace..::.XWorld
The world XWorld sprite where the new viewport will be created.
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 world is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also