Skylicht Engine
Loading...
Searching...
No Matches
Skylicht::CCameraReflect Class Reference

This is an object class that sets up a camera to be symmetrical with a selected camera. It's used for rendering planar reflections. More...

#include <Camera/CCameraReflect.h>

Inheritance diagram for Skylicht::CCameraReflect:
Skylicht::CComponentSystem Skylicht::ILateUpdate Skylicht::IActivatorObject

Public Member Functions

virtual void initComponent ()
virtual void updateComponent ()
virtual void lateUpdate ()
void setTargetCamera (CCamera *cam)
 Sets the source camera to be reflected.
CCameragetTargetCamera ()
 Gets the current source camera.
void setPlane (const core::plane3df &p)
 Sets the reflection plane in world space.
Public Member Functions inherited from Skylicht::CComponentSystem
const char * getName ()
virtual void reset ()
virtual void startComponent ()
virtual void endUpdate ()
virtual void onEnable (bool b)
virtual void onUpdateCullingLayer (u32 mask)
virtual CObjectSerializablecreateSerializable ()
virtual void loadSerializable (CObjectSerializable *object)
void setEnable (bool b)
bool isEnable ()
CGameObject * getGameObject ()
void setEnableSerializable (bool b)
bool isSerializable ()
void addLinkComponent (CComponentSystem *comp)
void removeAllLink ()
Public Member Functions inherited from Skylicht::IActivatorObject
virtual ~IActivatorObject ()
 Virtual destructor for polymorphic activator objects.

Protected Attributes

CCameram_camera
 Pointer to the main camera component being updated with reflected view.
CCameram_targetCamera
 The source camera to reflect.
core::plane3df m_plane
 The world plane to reflect against.
Protected Attributes inherited from Skylicht::CComponentSystem
CGameObject * m_gameObject
bool m_enable
bool m_serializable
std::vector< CComponentSystem * > m_linkComponent

Additional Inherited Members

Static Public Member Functions inherited from Skylicht::CComponentSystem
static int useComponent (CComponentSystem *used)
Protected Member Functions inherited from Skylicht::CComponentSystem
void setOwner (CGameObject *obj)

Detailed Description

This is an object class that sets up a camera to be symmetrical with a selected camera. It's used for rendering planar reflections.

Member Function Documentation

◆ getTargetCamera()

CCamera * Skylicht::CCameraReflect::getTargetCamera ( )
inline

Gets the current source camera.

Returns
Pointer to CCamera.

◆ initComponent()

virtual void Skylicht::CCameraReflect::initComponent ( )
virtual

◆ lateUpdate()

virtual void Skylicht::CCameraReflect::lateUpdate ( )
virtual

Implements Skylicht::ILateUpdate.

◆ setPlane()

void Skylicht::CCameraReflect::setPlane ( const core::plane3df & p)
inline

Sets the reflection plane in world space.

Parameters
pPlane definition.

◆ setTargetCamera()

void Skylicht::CCameraReflect::setTargetCamera ( CCamera * cam)

Sets the source camera to be reflected.

Parameters
camPointer to the source camera.

◆ updateComponent()

virtual void Skylicht::CCameraReflect::updateComponent ( )
virtual

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