Castor3D
..
|
RenderTarget manager. More...
Public Member Functions | |
C3D_API | TargetManager (Engine &p_engine) |
Constructor. More... | |
C3D_API | ~TargetManager () |
Destructor. More... | |
C3D_API RenderTargetSPtr | Create (eTARGET_TYPE p_type) |
Creates a render target of given type. More... | |
C3D_API void | Remove (RenderTargetSPtr &&p_pRenderTarget) |
Removes a render target from the render loop. More... | |
C3D_API void | Render (uint32_t &p_time, uint32_t &p_vtxCount, uint32_t &p_fceCount, uint32_t &p_objCount) |
Renders into the render targets. More... | |
Public Member Functions inherited from Castor3D::Manager< Castor::String, RenderTarget, Engine, ResourceManagerEngineGetter > | |
void | Cleanup () |
Sets all the elements to be cleaned up. More... | |
void | Clear () |
Flushes the collection. More... | |
bool | IsEmpty () |
void | Insert (Castor::String const &p_name, std::shared_ptr< RenderTarget > p_element) |
Removes an object, given a name. More... | |
void | Remove (Castor::String const &p_name) |
Removes an object, given a name. More... | |
void | SetRenderSystem (RenderSystem *p_renderSystem) |
RenderSystem * | SetRenderSystem () const |
Engine * | GetEngine () const |
Castor::String const & | GetObjectTypeName () const |
bool | Has (Castor::String const &p_name) const |
std::shared_ptr< RenderTarget > | Find (Castor::String const &p_name) const |
Looks for an element with given name. More... | |
void | lock () const |
Locks the collection mutex. More... | |
void | unlock () const |
Unlocks the collection mutex. More... | |
Collection::TObjPtrMapIt | begin () |
Returns an iterator to the first element of the collection. More... | |
Collection::TObjPtrMapConstIt | begin () const |
Returns an constant iterator to the first element of the collection. More... | |
Collection::TObjPtrMapIt | end () |
Returns an iterator to the after last element of the collection. More... | |
Collection::TObjPtrMapConstIt | end () const |
Returns an constant iterator to the after last element of the collection. More... | |
std::shared_ptr< RenderTarget > | Create (Castor::String const &p_name, Parameters &&... p_params) |
Creates an object. More... | |
Additional Inherited Members | |
Public Types inherited from Castor3D::Manager< Castor::String, RenderTarget, Engine, ResourceManagerEngineGetter > | |
typedef Castor::Collection< RenderTarget, Castor::String > | Collection |
Protected Member Functions inherited from Castor3D::ResourceManager< Castor::String, RenderTarget > | |
ResourceManager (Engine &p_owner) | |
Constructor. More... | |
~ResourceManager () | |
Destructor. More... | |
Protected Member Functions inherited from Castor3D::Manager< Castor::String, RenderTarget, Engine, ResourceManagerEngineGetter > | |
Manager (Engine &p_owner) | |
Constructor. More... | |
~Manager () | |
Destructor. More... | |
Protected Attributes inherited from Castor3D::Manager< Castor::String, RenderTarget, Engine, ResourceManagerEngineGetter > | |
RenderSystem * | m_renderSystem |
The RenderSystem. More... | |
Collection | m_elements |
The elements collection. More... | |
C3D_API Castor3D::TargetManager::TargetManager | ( | Engine & | p_engine | ) |
Constructor.
[in] | p_engine | The engine. |
C3D_API Castor3D::TargetManager::~TargetManager | ( | ) |
Destructor.
C3D_API RenderTargetSPtr Castor3D::TargetManager::Create | ( | eTARGET_TYPE | p_type | ) |
Creates a render target of given type.
[in] | p_type | The render target type |
C3D_API void Castor3D::TargetManager::Remove | ( | RenderTargetSPtr && | p_pRenderTarget | ) |
Removes a render target from the render loop.
[in] | p_pRenderTarget | The render target |
C3D_API void Castor3D::TargetManager::Render | ( | uint32_t & | p_time, |
uint32_t & | p_vtxCount, | ||
uint32_t & | p_fceCount, | ||
uint32_t & | p_objCount | ||
) |
Renders into the render targets.
[in] | p_time | The current frame time. |
[in,out] | p_vtxCount | Receives the total vertex count. |
[in] | p_fceCount | Receives the total faces count. |
[in] | p_objCount | Receives the total objects count. |