C4 Engine
C4 Engine API Documentation

ViewportWidget::GetViewportCamera

Defined in:  C4Viewports.h
Returns the camera used by a viewport widget.
Prototype

Camera *GetViewportCamera(void);

const Camera *GetViewportCamera(voidconst;

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

Camera

OrthoCamera

FrustumCamera