![]() |
Castor3D 0.17.0
Multiplatform 3D engine
|
#include <FrameListener.hpp>


Public Member Functions | |
| C3D_API | FrameListener (castor::String const &name) |
| Constructor. | |
| virtual C3D_API | ~FrameListener () noexcept |
| Destructor. | |
| C3D_API void | flush () |
| Empties the event lists. | |
| C3D_API CpuFrameEvent * | postEvent (CpuFrameEventUPtr event) |
| Puts an event in the corresponding array. | |
| C3D_API GpuFrameEvent * | postEvent (GpuFrameEventUPtr event) |
| Puts an event in the corresponding array. | |
| C3D_API bool | fireEvents (CpuEventType type) |
| Applies all events of a given type, then discards them. | |
| C3D_API bool | fireEvents (GpuEventType type, RenderDevice const &device, QueueData const &queueData) |
| Applies all events of a given type, then discards them. | |
| C3D_API void | flushEvents (CpuEventType type) |
| Discards all events of a given type. | |
| C3D_API void | flushEvents (GpuEventType type) |
| Discards all events of a given type. | |
Public Member Functions inherited from castor::NamedBaseT< T > | |
| NamedBaseT (T name) noexcept | |
| Constructor. | |
| T const & | getName () const noexcept |
| Retrieves the name. | |
| void | rename (T name) noexcept |
Protected Member Functions | |
| virtual C3D_API void | doFlush () |
| Empties the event lists. | |
Protected Attributes | |
| castor::Array< CpuFrameEventPtrArray, size_t(CpuEventType::eCount) > | m_cpuEvents |
| castor::Array< GpuFrameEventPtrArray, size_t(GpuEventType::eCount) > | m_gpuEvents |
| castor::RecursiveMutex | m_mutex |
Protected Attributes inherited from castor::NamedBaseT< T > | |
| T | m_name |
|
explicit |
Constructor.
| [in] | name | The listener's name. |
|
virtualnoexcept |
Destructor.
|
inlineprotectedvirtual |
Empties the event lists.
| C3D_API bool castor3d::FrameListener::fireEvents | ( | CpuEventType | type | ) |
Applies all events of a given type, then discards them.
| [in] | type | The type of events to fire. |
true si tous les évènements se sont exécutés sans erreur. | C3D_API bool castor3d::FrameListener::fireEvents | ( | GpuEventType | type, |
| RenderDevice const & | device, | ||
| QueueData const & | queueData ) |
Applies all events of a given type, then discards them.
| [in] | type | The type of events to fire. |
| [in] | device | The GPU device. |
| [in] | queueData | The queue receiving the GPU commands. |
true si tous les évènements se sont exécutés sans erreur. | C3D_API void castor3d::FrameListener::flush | ( | ) |
Empties the event lists.
| C3D_API void castor3d::FrameListener::flushEvents | ( | CpuEventType | type | ) |
Discards all events of a given type.
| [in] | type | The type of events to fire. |
| C3D_API void castor3d::FrameListener::flushEvents | ( | GpuEventType | type | ) |
Discards all events of a given type.
| [in] | type | The type of events to fire. |
| C3D_API CpuFrameEvent * castor3d::FrameListener::postEvent | ( | CpuFrameEventUPtr | event | ) |
Puts an event in the corresponding array.
| [in] | event | The event to put. |
Referenced by castor3d::CpuEventInitialiserT< CacheT >::operator()(), castor3d::CpuEventCleanerT< CacheT >::operator()(), castor3d::GpuEventInitialiserT< CacheT >::operator()(), and castor3d::GpuEventCleanerT< CacheT >::operator()().

| C3D_API GpuFrameEvent * castor3d::FrameListener::postEvent | ( | GpuFrameEventUPtr | event | ) |
Puts an event in the corresponding array.
| [in] | event | The event to put. |
|
protected |
The CPU events arrays.
|
protected |
The GPU events arrays.
|
protected |
Mutex to make this class thread safe.