igraphic 0.2.0
Contrats graphiques chargeables : IGraphic2Module / IGraphic3Module
Loading...
Searching...
No Matches
graphic::ICamera Interface Referenceabstract

Camera interface. More...

#include <ICamera.hpp>

Public Types

enum  Projection { PERSPECTIVE , ORTHOGRAPHIC }
 
enum  Mode {
  CUSTOM = 0 , FREE , ORBITAL , FIRST_PERSON ,
  THIRD_PERSON
}
 

Public Member Functions

virtual ~ICamera ()=default
 Destroy the ICamera object.
 
virtual float getFov () const =0
 Get the FOV.
 
virtual void setFov (float fov)=0
 Set the FOV.
 
virtual Mode getMode () const =0
 Get the mode.
 
virtual void setMode (Mode mode)=0
 Set the mode.
 
virtual Vector3f getPosition () const =0
 Get the position.
 
virtual void setPosition (Vector3f position)=0
 Set the position.
 
virtual Projection getProjection () const =0
 Get the Projection.
 
virtual void setProjection (Projection projection)=0
 Set the Projection.
 
virtual Vector3f getTarget () const =0
 Get the target.
 
virtual void setTarget (Vector3f size)=0
 Set the target.
 
virtual Vector3f getUp () const =0
 Get the up vector.
 
virtual void setUp (Vector3f up)=0
 Set the up vector.
 

Detailed Description

Camera interface.

Member Enumeration Documentation

◆ Mode

Enumerator
CUSTOM 
FREE 
ORBITAL 
FIRST_PERSON 
THIRD_PERSON 

◆ Projection

Enumerator
PERSPECTIVE 
ORTHOGRAPHIC 

Constructor & Destructor Documentation

◆ ~ICamera()

virtual graphic::ICamera::~ICamera ( )
virtualdefault

Destroy the ICamera object.

Member Function Documentation

◆ getFov()

virtual float graphic::ICamera::getFov ( ) const
pure virtual

Get the FOV.

Returns
float

◆ getMode()

virtual Mode graphic::ICamera::getMode ( ) const
pure virtual

Get the mode.

Returns
Mode

◆ getPosition()

virtual Vector3f graphic::ICamera::getPosition ( ) const
pure virtual

Get the position.

Returns
Vector3f

◆ getProjection()

virtual Projection graphic::ICamera::getProjection ( ) const
pure virtual

Get the Projection.

Returns
Vector3f

◆ getTarget()

virtual Vector3f graphic::ICamera::getTarget ( ) const
pure virtual

Get the target.

Returns
Vector3f

◆ getUp()

virtual Vector3f graphic::ICamera::getUp ( ) const
pure virtual

Get the up vector.

Returns
Vector3f

◆ setFov()

virtual void graphic::ICamera::setFov ( float  fov)
pure virtual

Set the FOV.

Parameters
fov

◆ setMode()

virtual void graphic::ICamera::setMode ( Mode  mode)
pure virtual

Set the mode.

Parameters
mode

◆ setPosition()

virtual void graphic::ICamera::setPosition ( Vector3f  position)
pure virtual

Set the position.

Parameters
position

◆ setProjection()

virtual void graphic::ICamera::setProjection ( Projection  projection)
pure virtual

Set the Projection.

Parameters
projection

◆ setTarget()

virtual void graphic::ICamera::setTarget ( Vector3f  size)
pure virtual

Set the target.

Parameters
size

◆ setUp()

virtual void graphic::ICamera::setUp ( Vector3f  up)
pure virtual

Set the up vector.

Parameters
up

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