Thrive
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
thrive::OgreCameraComponent Class Reference

A component for a camera. More...

#include <camera_system.h>

Inheritance diagram for thrive::OgreCameraComponent:
thrive::Component

Classes

struct  Properties
 Properties. More...
 

Public Member Functions

 OgreCameraComponent (std::string name)
 Constructor. More...
 
 OgreCameraComponent ()
 Default constructor. More...
 
void load (const StorageContainer &storage) override
 Loads a camera. More...
 
void zoom (int value)
 Changes the depth offset of the camera. More...
 
std::string name () const
 Returns the camera's name.
 
StorageContainer storage () const override
 Serializes the camera. More...
 
- Public Member Functions inherited from thrive::Component
virtual ~Component ()=0
 Destructor.
 
bool isVolatile () const
 A volatile component is not serialized during a save. More...
 
EntityId owner () const
 The entity this component belongs to. More...
 
void setVolatile (bool isVolatile)
 Sets the volatile flag. More...
 
void setOwner (EntityId owner)
 Sets the component's owner. More...
 
virtual ComponentTypeId typeId () const =0
 The component's type id.
 
virtual std::string typeName () const =0
 The component's type name.
 

Static Public Member Functions

static luabind::scope luaBindings ()
 Lua bindings. More...
 
- Static Public Member Functions inherited from thrive::Component
static luabind::scope luaBindings ()
 Lua bindings. More...
 

Public Attributes

Ogre::Camera * m_camera = nullptr
 Pointer to internal camera.
 
Properties m_properties
 Properties.
 

Detailed Description

A component for a camera.

Constructor & Destructor Documentation

OgreCameraComponent::OgreCameraComponent ( std::string  name)

Constructor.

Parameters
nameThe camera's name
OgreCameraComponent::OgreCameraComponent ( )

Default constructor.

Should only be used for loading

Member Function Documentation

void OgreCameraComponent::load ( const StorageContainer &  storage)
overridevirtual

Loads a camera.

Parameters
storage

Implements thrive::Component.

luabind::scope OgreCameraComponent::luaBindings ( )
static
StorageContainer OgreCameraComponent::storage ( ) const
overridevirtual

Serializes the camera.

Returns

Implements thrive::Component.

void thrive::OgreCameraComponent::zoom ( int  value)

Changes the depth offset of the camera.

Parameters
valueValue to change the depth by

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