Untold Engine  Beta v0.0.16
docs
U4DEngine::U4DCameraInterface Class Referenceabstract

The U4DCameraInterface provides the interface for the camera behaviors (first person camera, third person camera, etc) More...

Inherited by U4DEngine::U4DCameraBasicFollow, U4DEngine::U4DCameraFirstPerson, and U4DEngine::U4DCameraThirdPerson.

Public Member Functions

virtual ~U4DCameraInterface ()
 Virtual destructor for interface. The actual destructor implementation is set by the subclasses.
 
virtual void update (double dt)=0
 Updates the state of the camera behavior. More...
 
virtual void setParameters (U4DModel *uModel, float uXOffset, float uYOffset, float uZOffset)=0
 Sets the parameters utilize by the behavior of the camera. More...
 
virtual void setParametersWithBoxTracking (U4DModel *uModel, float uXOffset, float uYOffset, float uZOffset, U4DPoint3n uMinPoint, U4DPoint3n uMaxPoint)=0
 
virtual void trackBoundingBox ()=0
 
virtual U4DBoundingAABBgetBoundingBox ()=0
 
virtual void pauseBoxTracking ()=0
 
virtual void resumeBoxTracking ()=0
 

Detailed Description

The U4DCameraInterface provides the interface for the camera behaviors (first person camera, third person camera, etc)

Member Function Documentation

◆ setParameters()

virtual void U4DEngine::U4DCameraInterface::setParameters ( U4DModel uModel,
float  uXOffset,
float  uYOffset,
float  uZOffset 
)
pure virtual

Sets the parameters utilize by the behavior of the camera.

Parameters
uModel3D model entity to follow
uXOffsetx-distance offset
uYOffsety-distance offset
uZOffsetz-distance offset

Implemented in U4DEngine::U4DCameraBasicFollow, U4DEngine::U4DCameraFirstPerson, and U4DEngine::U4DCameraThirdPerson.

◆ update()

virtual void U4DEngine::U4DCameraInterface::update ( double  dt)
pure virtual

Updates the state of the camera behavior.

Parameters
dttime-step value

Implemented in U4DEngine::U4DCameraBasicFollow, U4DEngine::U4DCameraFirstPerson, and U4DEngine::U4DCameraThirdPerson.