PixelLightAPI
.
|
Effect technique class. More...
#include <EffectTechnique.h>
Public Member Functions | |
Effect & | GetEffect () const |
Returns the owner effect. | |
bool | IsValid () const |
Returns whether the technique is valid or not. | |
void | SetValid (bool bValid) |
Sets whether the technique is valid or not. | |
PLCore::String | GetName () const |
Gets the name of the technique. | |
void | SetName (const PLCore::String &sName="") |
Sets the name of the technique. | |
PLCore::uint32 | GetNumOfPasses () const |
Gets the number of render passes the technique is using. | |
PLRENDERER_API EffectPass * | AddPass (int nIndex=-1) |
Adds a pass. | |
PLRENDERER_API bool | RemovePass (PLCore::uint32 nIndex=0) |
Removes a pass. | |
PLRENDERER_API void | RemoveAllPasses () |
Removes all passes. | |
EffectPass * | GetPass (PLCore::uint32 nIndex=0) const |
Gets a pass. | |
PLRENDERER_API bool | SetupPass (PLCore::uint32 nIndex=0, ParameterManager *pParameterManager=nullptr) const |
Setup the given path. |
Effect technique class.
Effect & PLRenderer::EffectTechnique::GetEffect | ( | ) | const [inline] |
Returns the owner effect.
bool PLRenderer::EffectTechnique::IsValid | ( | ) | const [inline] |
Returns whether the technique is valid or not.
void PLRenderer::EffectTechnique::SetValid | ( | bool | bValid | ) | [inline] |
Sets whether the technique is valid or not.
[in] | bValid | Technique valid? |
PLCore::String PLRenderer::EffectTechnique::GetName | ( | ) | const [inline] |
Gets the name of the technique.
void PLRenderer::EffectTechnique::SetName | ( | const PLCore::String & | sName = "" | ) | [inline] |
Sets the name of the technique.
[in] | sName | New technique name |
PLCore::uint32 PLRenderer::EffectTechnique::GetNumOfPasses | ( | ) | const [inline] |
Gets the number of render passes the technique is using.
PLRENDERER_API EffectPass* PLRenderer::EffectTechnique::AddPass | ( | int | nIndex = -1 | ) |
Adds a pass.
[in] | nIndex | Pass index in the technique where to add the new pass, if < 0 add at the end |
PLRENDERER_API bool PLRenderer::EffectTechnique::RemovePass | ( | PLCore::uint32 | nIndex = 0 | ) |
Removes a pass.
[in] | nIndex | Pass index in the technique to remove |
PLRENDERER_API void PLRenderer::EffectTechnique::RemoveAllPasses | ( | ) |
Removes all passes.
EffectPass * PLRenderer::EffectTechnique::GetPass | ( | PLCore::uint32 | nIndex = 0 | ) | const [inline] |
Gets a pass.
[in] | nIndex | Pass index in the technique |
PLRENDERER_API bool PLRenderer::EffectTechnique::SetupPass | ( | PLCore::uint32 | nIndex = 0 , |
ParameterManager * | pParameterManager = nullptr |
||
) | const |
Setup the given path.
[in] | nIndex | Index of the path to setup |
[in] | pParameterManager | Parameters set instead of existing effect parameters, if a null pointer, use THIS parameter manager |
|