RenderTargetAddViewport Method |
Adds a viewport to the rendering target.
Namespace:
NeoAxis
Assembly:
NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntaxpublic Viewport AddViewport(
bool createSimple3DRenderer,
bool createCanvasRenderer,
int insertIndex = 100000
)
Parameters
- createSimple3DRenderer
- Type: SystemBoolean
- createCanvasRenderer
- Type: SystemBoolean
- insertIndex (Optional)
- Type: SystemInt32
The relative order of the viewport with others on the target (allows overlapping
viewports i.e. picture-in-picture).
Return Value
Type:
ViewportThe viewport.
Remarks
A viewport is the rectangle into which redering output is sent. This method adds
a viewport to the render target, rendering from the supplied camera. The
rest of the parameters are only required if you wish to add more than one viewport
to a single rendering target. Note that size information passed to this method is
passed as a parametric, i.e. it is relative rather than absolute. This is to allow
viewports to automatically resize along with the target.
See Also