Ocular Engine
Ocular::Core::CameraRenderable Class Reference

#include <CameraRenderable.hpp>

Inheritance diagram for Ocular::Core::CameraRenderable:
Ocular::Core::ARenderable Ocular::Core::Object Ocular::Core::ObjectIO Ocular::Core::Exposable Ocular::Core::Buildable

Public Member Functions

 CameraRenderable (std::string const &name="CameraRenderable", SceneObject *parent=nullptr)
 
virtual bool initialize () override
 
virtual bool preRenderDebug () override
 
virtual void renderDebug () override
 
virtual void postRenderDebug () override
 
- Public Member Functions inherited from Ocular::Core::ARenderable
 ARenderable (std::string const &name="ARenderable", std::string const &type="ARenderable", SceneObject *parent=nullptr)
 
virtual bool preRender ()
 
virtual void render ()
 
virtual void render (Graphics::Material *material)
 
virtual void postRender ()
 
virtual void buildBounds (Math::BoundsSphere *sphere, Math::BoundsAABB *aabb, Math::BoundsOBB *obb, Math::Matrix4x4 const &matrix=Math::Matrix4x4())
 
SceneObjectgetParent () const
 
std::string const & getName () const
 
virtual uint32_t getRenderPriority () const
 
- Public Member Functions inherited from Ocular::Core::Object
 Object (std::string name, std::string className)
 Creates a new Object with the specified name and class. More...
 
 Object (std::string name)
 Creates a new Object with the specified name. More...
 
 Object ()
 Creates a new Object with the default name ('Name').
 
std::string const & getName () const
 
void setName (std::string name)
 Sets the name of the Object. More...
 
std::string const & getClass () const
 
void setUUID (std::string const &uuid)
 
UUID const & getUUID () const
 
int64_t getCreationTime () const
 
virtual std::string toString () const
 
template<class T >
bool isType ()
 
- Public Member Functions inherited from Ocular::Core::ObjectIO
virtual void onLoad (BuilderNode const *node) override
 
virtual void onSave (BuilderNode *node) const override
 
- Public Member Functions inherited from Ocular::Core::Exposable
void getAllExposedNames (std::vector< std::string > &names) const
 
bool getVariable (std::string const &name, ExposedVariable &var)
 
template<typename T >
bool getVariableValue (std::string const &name, T &var)
 
template<typename T >
bool setVariableValue (std::string const &name, T const &value)
 
virtual void onVariableModified (std::string const &varName)
 

Protected Member Functions

bool buildFrustumMesh ()
 
bool buildFrustumMaterial ()
 
- Protected Member Functions inherited from Ocular::Core::Exposable
void exposeVariable (std::string const &name, std::string const &type, bool isPointer, bool isExposed, void *data)
 

Protected Attributes

Graphics::Meshm_FrustumMesh
 
Graphics::Materialm_FrustumMaterial
 
- Protected Attributes inherited from Ocular::Core::ARenderable
SceneObjectm_Parent
 
- Protected Attributes inherited from Ocular::Core::Object
std::string m_Name
 
std::string m_Class
 
UUID m_UUID
 
const int64_t m_CreationTime
 
- Protected Attributes inherited from Ocular::Core::Exposable
std::unordered_map< std::string, ExposedVariablem_ExposedVariables
 

Detailed Description

Implementation of ARenderable used by Cameras during debug rendering. Displays the bounds of the camera's viewing frustum.

Member Function Documentation

void Ocular::Core::CameraRenderable::postRenderDebug ( )
overridevirtual

Special debug mode post-render call.

This method is typically invoked in special debug scenarios and/or inside of editor preview windows.

By default, it calls the standard post-render method.

Reimplemented from Ocular::Core::ARenderable.

bool Ocular::Core::CameraRenderable::preRenderDebug ( )
overridevirtual

Special debug mode pre-render call.

This method is typically invoked in special debug scenarios and/or inside of editor preview windows.

By default, it calls the standard pre-render method.

Returns
If return FALSE, rendering will be cancelled.

Reimplemented from Ocular::Core::ARenderable.

void Ocular::Core::CameraRenderable::renderDebug ( )
overridevirtual

Special debug mode render call.

This method is typically invoked in special debug scenarios and/or inside of editor preview windows.

By default, it calls the standard render method.

Reimplemented from Ocular::Core::ARenderable.


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