#include <FrameListener.hpp>
◆ FrameListener()
C3D_API castor3d::FrameListener::FrameListener |
( |
castor::String const & |
name | ) |
|
|
explicit |
Constructor.
- Parameters
-
[in] | name | The listener's name. |
◆ ~FrameListener()
virtual C3D_API castor3d::FrameListener::~FrameListener |
( |
| ) |
|
|
virtual |
◆ doFlush()
virtual C3D_API void castor3d::FrameListener::doFlush |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ fireEvents() [1/2]
Applies all events of a given type, then discards them.
- Parameters
-
[in] | type | The type of events to fire. |
- Returns
true
si tous les évènements se sont exécutés sans erreur.
◆ fireEvents() [2/2]
Applies all events of a given type, then discards them.
- Parameters
-
[in] | type | The type of events to fire. |
[in] | device | The GPU device. |
[in] | queueData | The queue receiving the GPU commands. |
- Returns
true
si tous les évènements se sont exécutés sans erreur.
◆ flush()
C3D_API void castor3d::FrameListener::flush |
( |
| ) |
|
◆ flushEvents()
Discards all events of a given type.
- Parameters
-
[in] | type | The type of events to fire. |
◆ postEvent() [1/2]
C3D_API void castor3d::FrameListener::postEvent |
( |
CpuFrameEventUPtr |
event | ) |
|
◆ postEvent() [2/2]
C3D_API void castor3d::FrameListener::postEvent |
( |
GpuFrameEventUPtr |
event | ) |
|
Puts an event in the corresponding array.
- Parameters
-
[in] | event | The event to put. |
◆ m_cpuEvents
std::array< CpuFrameEventPtrArray, size_t( EventType::eCount ) > castor3d::FrameListener::m_cpuEvents |
|
protected |
◆ m_gpuEvents
std::array< GpuFrameEventPtrArray, size_t( EventType::eCount ) > castor3d::FrameListener::m_gpuEvents |
|
protected |
◆ m_mutex
std::recursive_mutex castor3d::FrameListener::m_mutex |
|
protected |
Mutex to make this class thread safe.
The documentation for this class was generated from the following file: