ViewportWidget::GetViewportCamera
Defined in:
Returns the camera used by a viewport widget.
C4Viewports.hPrototype
Camera *GetViewportCamera(void);
const Camera *GetViewportCamera(void) const;
Description
The GetViewportCamera function returns the camera node through which the 3D scene is rendered inside a viewport widget. If the viewport is an OrthoViewportWidget, then the returned pointer can be cast to a pointer to an OrthoCamera node. If the viewport is a FrustumViewportWidget, then the returned pointer can be cast to a pointer to a FrustumCamera node.
See Also
