Rasterfarm-SDK
Loading...
Searching...
No Matches
Raster::Camera Class Reference

#include <camera.h>

Inheritance diagram for Raster::Camera:
Matrix4f Matrix Raster::CameraTracker

Public Member Functions

 Camera ()
 
 Camera (const Vertex3f &eyePosition, const Vertex3f &targetPosition, float tiltAngle=0.0f)
 
void lookAt (const Vertex3f &eyePosition, const Vertex3f &targetPosition, float tiltAngle=0.0f)
 
virtual void update ()
 

Static Public Member Functions

static Matrix4f lookAtMatrix (const Vertex3f &eyePosition, const Vertex3f &targetPosition, float tiltAngle=0.0f)
 

Constructor & Destructor Documentation

◆ Camera() [1/2]

Raster::Camera::Camera ( )

◆ Camera() [2/2]

Raster::Camera::Camera ( const Vertex3f & eyePosition,
const Vertex3f & targetPosition,
float tiltAngle = 0.0f )

Member Function Documentation

◆ lookAt()

void Raster::Camera::lookAt ( const Vertex3f & eyePosition,
const Vertex3f & targetPosition,
float tiltAngle = 0.0f )

Point the Camera towards the given target position.

Parameters
Theposition of the Camera.
Thetarget position the Camera will face. NOTE: The Camera position must != the target position.

◆ lookAtMatrix()

static Matrix4f Raster::Camera::lookAtMatrix ( const Vertex3f & eyePosition,
const Vertex3f & targetPosition,
float tiltAngle = 0.0f )
static

Sets the camera

Parameters
eventThe Event.
Returns
void

◆ update()

virtual void Raster::Camera::update ( )
virtual

Reimplemented in Raster::CameraTracker.


The documentation for this class was generated from the following file: