PixelLightAPI
.
|
A effect pass will set the render states, textures etc. required for proper rendering of the given pass. More...
#include <EffectPass.h>
Public Member Functions | |
EffectTechnique & | GetTechnique () const |
Returns the owner effect technique. | |
PLCore::String | GetName () const |
Returns the pass name. | |
void | SetName (const PLCore::String &sName="Pass") |
Sets the pass name. | |
PLRENDERER_API bool | Bind (ParameterManager *pParameterManager=nullptr) |
Binds the pass. | |
PLRENDERER_API EffectPass & | operator= (const EffectPass &cSource) |
Copy operator. | |
const PLGraphics::Color4 & | GetColor () const |
Returns the general color. | |
void | SetColor (const PLGraphics::Color4 &cColor=PLGraphics::Color4::White) |
Sets the general color. | |
RenderStates & | GetRenderStates () |
Returns the render states. | |
const RenderStates & | GetRenderStates () const |
FixedFunctionsRenderStates & | GetFixedFunctionsRenderStates () |
Returns the fixed functions render states. | |
const FixedFunctionsRenderStates & | GetFixedFunctionsRenderStates () const |
PLRENDERER_API void | ResetMaterialStates () |
Resets all material states to default. | |
PLCore::uint32 | GetMaterialState (FixedFunctions::MaterialState::Enum nState) const |
Retrieves a material-state value. | |
bool | SetMaterialState (FixedFunctions::MaterialState::Enum nState, PLCore::uint32 nValue) |
Sets a single material-state parameter. | |
PLCore::uint32 | GetNumOfLayers () const |
Returns the number of texture layers. | |
PLRENDERER_API EffectPassLayer * | AddLayer () |
Adds a new layer. | |
EffectPassLayer * | GetLayer (PLCore::uint32 nIndex=0) const |
Returns a layer. | |
PLRENDERER_API bool | RemoveLayer (PLCore::uint32 nIndex=0) |
Removes a layer. | |
PLRENDERER_API void | RemoveAllLayers () |
Removes all layers. | |
PLRENDERER_API bool | LoadVertexShader (const PLCore::String &sFilename, const PLCore::String &sShaderLanguage, const PLCore::String &sProfile="") |
Loads a vertex shader. | |
PLRENDERER_API bool | LoadFragmentShader (const PLCore::String &sFilename, const PLCore::String &sShaderLanguage, const PLCore::String &sProfile="") |
Loads a fragment shader. | |
PLRENDERER_API Program * | GetProgram () |
Returns the used GPU program. |
A effect pass will set the render states, textures etc. required for proper rendering of the given pass.
EffectTechnique & PLRenderer::EffectPass::GetTechnique | ( | ) | const [inline] |
Returns the owner effect technique.
PLCore::String PLRenderer::EffectPass::GetName | ( | ) | const [inline] |
Returns the pass name.
void PLRenderer::EffectPass::SetName | ( | const PLCore::String & | sName = "Pass" | ) | [inline] |
Sets the pass name.
[in] | sName | New pass name |
PLRENDERER_API bool PLRenderer::EffectPass::Bind | ( | ParameterManager * | pParameterManager = nullptr | ) |
Binds the pass.
[in] | pParameterManager | Parameters set instead of existing effect parameters, can be a null pointer |
PLRENDERER_API EffectPass& PLRenderer::EffectPass::operator= | ( | const EffectPass & | cSource | ) |
Copy operator.
[in] | cSource | Source to copy from |
const PLGraphics::Color4 & PLRenderer::EffectPass::GetColor | ( | ) | const [inline] |
Returns the general color.
void PLRenderer::EffectPass::SetColor | ( | const PLGraphics::Color4 & | cColor = PLGraphics::Color4::White | ) | [inline] |
Sets the general color.
[in] | cColor | New general color |
RenderStates & PLRenderer::EffectPass::GetRenderStates | ( | ) | [inline] |
Returns the render states.
const RenderStates & PLRenderer::EffectPass::GetRenderStates | ( | ) | const [inline] |
Returns the fixed functions render states.
const FixedFunctionsRenderStates & PLRenderer::EffectPass::GetFixedFunctionsRenderStates | ( | ) | const [inline] |
PLRENDERER_API void PLRenderer::EffectPass::ResetMaterialStates | ( | ) |
Resets all material states to default.
PLCore::uint32 PLRenderer::EffectPass::GetMaterialState | ( | FixedFunctions::MaterialState::Enum | nState | ) | const [inline] |
Retrieves a material-state value.
[in] | nState | State variable that is being queried. This parameter can be any member of the renderer material enumerated type. |
bool PLRenderer::EffectPass::SetMaterialState | ( | FixedFunctions::MaterialState::Enum | nState, |
PLCore::uint32 | nValue | ||
) | [inline] |
Sets a single material-state parameter.
[in] | nState | State variable that is being modified. This parameter can be any member of the renderer material enumerated type. |
[in] | nValue | New value for the material state to be set. You can also set the value to unknown - then this state is ignored. |
PLCore::uint32 PLRenderer::EffectPass::GetNumOfLayers | ( | ) | const [inline] |
Returns the number of texture layers.
PLRENDERER_API EffectPassLayer* PLRenderer::EffectPass::AddLayer | ( | ) |
Adds a new layer.
EffectPassLayer * PLRenderer::EffectPass::GetLayer | ( | PLCore::uint32 | nIndex = 0 | ) | const [inline] |
Returns a layer.
[in] | nIndex | Layer index |
PLRENDERER_API bool PLRenderer::EffectPass::RemoveLayer | ( | PLCore::uint32 | nIndex = 0 | ) |
Removes a layer.
[in] | nIndex | Index of the layer to remove |
PLRENDERER_API void PLRenderer::EffectPass::RemoveAllLayers | ( | ) |
Removes all layers.
PLRENDERER_API bool PLRenderer::EffectPass::LoadVertexShader | ( | const PLCore::String & | sFilename, |
const PLCore::String & | sShaderLanguage, | ||
const PLCore::String & | sProfile = "" |
||
) |
PLRENDERER_API bool PLRenderer::EffectPass::LoadFragmentShader | ( | const PLCore::String & | sFilename, |
const PLCore::String & | sShaderLanguage, | ||
const PLCore::String & | sProfile = "" |
||
) |
PLRENDERER_API Program* PLRenderer::EffectPass::GetProgram | ( | ) |
Returns the used GPU program.
|