Creates new view to the world World2D with new camera and adds it to the panel view collection.
Namespace:
SGP.Baltie2DAssembly: SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825
Syntax
C# |
---|
[DefaultMethodAttribute] public XCameraViewport CreateViewport2D( float x, float y, float width, float height, bool relative ) |
Parameters
- x
- Type: System..::.Single
The X coordinate of the upper-left corner.
- y
- Type: System..::.Single
The Y coordinate of the upper-left corner.
- width
- Type: System..::.Single
View width.
- height
- Type: System..::.Single
View height.
- relative
- Type: System..::.Boolean
Whether coordinates are absolute or relative.