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

A proxy for Ogre::Viewport. More...

#include <viewport_system.h>

Inheritance diagram for thrive::OgreViewportComponent:
thrive::Component

Classes

struct  Properties
 Properties. More...
 

Public Member Functions

 OgreViewportComponent (int zOrder=0)
 Constructor. More...
 
void load (const StorageContainer &storage) override
 Loads the component. More...
 
StorageContainer storage () const override
 Serializes the component. More...
 
int zOrder () const
 The viewport's z order. 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

Properties m_properties
 Properties.
 
Ogre::Viewport * m_viewport = nullptr
 Pointer to internal Ogre::Viewport.
 

Detailed Description

A proxy for Ogre::Viewport.

Constructor & Destructor Documentation

OgreViewportComponent::OgreViewportComponent ( int  zOrder = 0)

Constructor.

Parameters
zOrderThe lower, the further to the front

Member Function Documentation

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

Loads the component.

Parameters
storage

Implements thrive::Component.

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

Serializes the component.

Returns

Implements thrive::Component.

int OgreViewportComponent::zOrder ( ) const

The viewport's z order.

Higher z orders lay on top of lower ones


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