Castor3D  ..
Public Member Functions | List of all members
Castor3D::RenderTechniqueManager Class Reference

Render technique manager. More...

+ Inheritance diagram for Castor3D::RenderTechniqueManager:
+ Collaboration diagram for Castor3D::RenderTechniqueManager:

Public Member Functions

C3D_API RenderTechniqueManager (Engine &p_engine)
 Constructor. More...
 
virtual C3D_API ~RenderTechniqueManager ()
 Destructor. More...
 
C3D_API void Update ()
 Updates all techniques. More...
 
C3D_API RenderTechniqueSPtr Create (Castor::String const &p_name, RenderTarget &p_renderTarget, RenderSystem *p_renderSystem, Parameters const &p_params)
 Creates a RenderTechnique. More...
 
TechniqueFactory const & GetTechniqueFactory () const
 Retrieves the RenderTechnique factory. More...
 
TechniqueFactoryGetTechniqueFactory ()
 Retrieves the RenderTechnique factory. More...
 

Additional Inherited Members

- Protected Types inherited from Castor3D::Manager< Castor::String, RenderTechnique, Engine, ResourceManagerEngineGetter >
typedef Castor::Collection< RenderTechnique, Castor::String > Collection
 
- Protected Member Functions inherited from Castor3D::ResourceManager< Castor::String, RenderTechnique >
 ResourceManager (Engine &p_owner)
 Constructor. More...
 
 ~ResourceManager ()
 Destructor. More...
 
- Protected Member Functions inherited from Castor3D::Manager< Castor::String, RenderTechnique, Engine, ResourceManagerEngineGetter >
 Manager (Engine &p_owner)
 Constructor. More...
 
 ~Manager ()
 Destructor. More...
 
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< RenderTechnique > 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)
 
RenderSystemSetRenderSystem () const
 
EngineGetEngine () const
 
Castor::String const & GetObjectTypeName () const
 
bool Has (Castor::String const &p_name) const
 
std::shared_ptr< RenderTechniqueFind (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< RenderTechniqueCreate (Castor::String const &p_name, Parameters &&... p_params)
 Creates an object. More...
 
- Protected Attributes inherited from Castor3D::Manager< Castor::String, RenderTechnique, Engine, ResourceManagerEngineGetter >
RenderSystemm_renderSystem
 The RenderSystem. More...
 
Collection m_elements
 The elements collection. More...
 

Detailed Description

Render technique manager.

Author
Sylvain DOREMUS
Version
0.8.0
Date
21/02/2016

Constructor & Destructor Documentation

◆ RenderTechniqueManager()

C3D_API Castor3D::RenderTechniqueManager::RenderTechniqueManager ( Engine p_engine)

Constructor.

◆ ~RenderTechniqueManager()

virtual C3D_API Castor3D::RenderTechniqueManager::~RenderTechniqueManager ( )
virtual

Destructor.

Member Function Documentation

◆ Create()

C3D_API RenderTechniqueSPtr Castor3D::RenderTechniqueManager::Create ( Castor::String const &  p_name,
RenderTarget p_renderTarget,
RenderSystem p_renderSystem,
Parameters const &  p_params 
)

Creates a RenderTechnique.

Parameters
[in]p_nameThe technique name.
[in]p_renderTargetThe technique render target.
[in]p_renderSystemThe render system.
[in]p_paramsThe technique parameters.
Returns
The created RenderTechnique.

◆ GetTechniqueFactory() [1/2]

TechniqueFactory const& Castor3D::RenderTechniqueManager::GetTechniqueFactory ( ) const
inline

Retrieves the RenderTechnique factory.

Returns
The factory

◆ GetTechniqueFactory() [2/2]

TechniqueFactory& Castor3D::RenderTechniqueManager::GetTechniqueFactory ( )
inline

Retrieves the RenderTechnique factory.

Returns
The factory

◆ Update()

C3D_API void Castor3D::RenderTechniqueManager::Update ( )

Updates all techniques.


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