PERRY v1.0.0
P-E-R-R-Y/PERRY helps creating games with a bunch of tools.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
SfmlCamera Class Reference
Inheritance diagram for SfmlCamera:
graphic::ICamera

Public Member Functions

 SfmlCamera (sf::Vector3f pos={0.f, 0.0f, 0.0f}, sf::Vector3f target={0, 0, -1}, float fov=90)
 Construct a new Sfml Camera object.
 
 ~SfmlCamera ()
 Destroy the Sfml Camera object.
 
float getFov () const override
 Get the Fov object.
 
void setFov (float fov) override
 Set the Fov object.
 
ICamera::Mode getMode () const override
 Get the Mode object.
 
void setMode (ICamera::Mode mode) override
 Set the Mode object.
 
__v3f_t getPosition () const override
 Get the Position object.
 
void setPosition (__v3f_t position) override
 Set the Position object.
 
ICamera::Projection getProjection () const override
 Get the Projection object.
 
void setProjection (ICamera::Projection projection) override
 Set the Projection object.
 
__v3f_t getTarget () const override
 Get the Target object.
 
void setTarget (__v3f_t target) override
 Set the Target object.
 
__v3f_t getUp () const override
 Get the Up object.
 
void setUp (__v3f_t up) override
 Set the Up object.
 
- Public Member Functions inherited from graphic::ICamera
virtual ~ICamera ()=default
 Destroy the ICamera object.
 
virtual void setMode (Mode mode)=0
 Set the mode.
 
virtual void setProjection (Projection projection)=0
 Set the Projection.
 

Protected Attributes

sf::Vector3f _position
 
sf::Vector3f _up
 
Quaternion _quaternion
 
Projection _projection
 
Mode _mode
 
float _fov
 

Friends

class SfmlWindow
 

Additional Inherited Members

- Public Types inherited from graphic::ICamera
enum  Projection { PERSPECTIVE , ORTHOGRAPHIC }
 
enum  Mode {
  CUSTOM = 0 , FREE , ORBITAL , FIRST_PERSON ,
  THIRD_PERSON
}
 

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