RenderTargetAddViewport Method |
Adds a viewport to the rendering target.
Namespace: NeoAxisAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntaxpublic Viewport AddViewport(
bool createSimple3DRenderer,
bool createCanvasRenderer,
int insertIndex = 100000
)
Parameters
- createSimple3DRenderer Boolean
-
- createCanvasRenderer Boolean
-
- insertIndex Int32 (Optional)
-
The relative order of the viewport with others on the target (allows overlapping
viewports i.e. picture-in-picture).
Return Value
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