OGRE 2.1
Object-Oriented Graphics Rendering Engine
|
Class defining a single pass of a Technique (of a Material), i.e. More...
#include <OgrePass.h>
Public Types | |
typedef ConstVectorIterator< TextureUnitStates > | ConstTextureUnitStateIterator |
typedef VectorIterator< TextureUnitStates > | TextureUnitStateIterator |
Public Member Functions | |
Pass (Technique *parent, unsigned short index) | |
Default constructor. | |
Pass (Technique *parent, unsigned short index, const Pass &oth) | |
Copy constructor. | |
virtual | ~Pass () |
HlmsDatablock * | _getDatablock (void) const |
Gets the internal datablock that acts as proxy for us. | |
size_t | _getTextureUnitWithContentTypeIndex (TextureUnitState::ContentType contentType, size_t index) const |
Gets the 'nth' texture which references the given content type. | |
void | _load (void) |
Internal method for loading this pass. | |
void | _notifyIndex (unsigned short index) |
Internal method to adjust pass index. | |
void | _prepare (void) |
Internal method for preparing to load this pass. | |
void | _unload (void) |
Internal method for unloading this pass. | |
void | _unprepare (void) |
Internal method for undoing the load preparartion for this pass. | |
void | _updateAutoParams (const AutoParamDataSource *source, uint16 variabilityMask) const |
Update automatic parameters. | |
void | addTextureUnitState (TextureUnitState *state) |
Adds the passed in TextureUnitState, to the existing Pass. | |
bool | applyTextureAliases (const AliasTextureNamePairList &aliasList, const bool apply=true) const |
Applies texture names to Texture Unit State with matching texture name aliases. | |
size_t | calculateSize (void) const |
TextureUnitState * | createTextureUnitState (const String &textureName, unsigned short texCoordSet=0) |
Inserts a new TextureUnitState object into the Pass. | |
TextureUnitState * | createTextureUnitState (void) |
Inserts a new TextureUnitState object into the Pass. | |
CompareFunction | getAlphaRejectFunction (void) const |
Gets the alpha reject function. | |
unsigned char | getAlphaRejectValue (void) const |
Gets the alpha reject value. | |
const ColourValue & | getAmbient (void) const |
Gets the ambient colour reflectance of the pass. | |
const HlmsBlendblock * | getBlendblock (void) const |
Retrieves current blendblock. | |
bool | getColourWriteEnabled (void) const |
Determines if colour buffer writing is enabled for this pass. | |
const GpuProgramPtr & | getComputeProgram (void) const |
Gets the Tessellation EHull program used by this pass, only available after _load(). | |
const String & | getComputeProgramName (void) const |
Gets the name of the Tessellation Hull program used by this pass. | |
GpuProgramParametersSharedPtr | getComputeProgramParameters (void) const |
Gets the Tessellation Hull program parameters used by this pass. | |
const ColourValue & | getDiffuse (void) const |
Gets the diffuse colour reflectance of the pass. | |
const ColourValue & | getEmissive (void) const |
Gets the self illumination colour of the pass. | |
const ColourValue & | getFogColour (void) const |
Returns the fog colour for the scene. | |
Real | getFogDensity (void) const |
Returns the fog density for this pass. | |
Real | getFogEnd (void) const |
Returns the fog end distance for this pass. | |
FogMode | getFogMode (void) const |
Returns the fog mode for this pass. | |
bool | getFogOverride (void) const |
Returns true if this pass is to override the scene fog settings. | |
Real | getFogStart (void) const |
Returns the fog start distance for this pass. | |
const GpuProgramPtr & | getFragmentProgram (void) const |
Gets the fragment program used by this pass, only available after _load(). | |
const String & | getFragmentProgramName (void) const |
Gets the name of the fragment program used by this pass. | |
GpuProgramParametersSharedPtr | getFragmentProgramParameters (void) const |
Gets the fragment program parameters used by this pass. | |
const GpuProgramPtr & | getGeometryProgram (void) const |
Gets the geometry program used by this pass, only available after _load(). | |
const String & | getGeometryProgramName (void) const |
Gets the name of the geometry program used by this pass. | |
GpuProgramParametersSharedPtr | getGeometryProgramParameters (void) const |
Gets the geometry program parameters used by this pass. | |
uint32 | getId (void) const |
unsigned short | getIndex (void) const |
Gets the index of this Pass in the parent Technique. | |
bool | getIteratePerLight (void) const |
Does this pass run once for every light in range? | |
bool | getLightClipPlanesEnabled () const |
Gets whether or not this pass will be clipped by user clips planes bounding the area covered by the light. | |
unsigned short | getLightCountPerIteration (void) const |
If light iteration is enabled, determine the number of lights per iteration. | |
uint32 | getLightMask () const |
Gets the light mask controlling which lights are used for this pass. | |
bool | getLightScissoringEnabled () const |
Gets whether or not this pass will be clipped by a scissor rectangle encompassing the lights that are being used in it. | |
const HlmsMacroblock * | getMacroblock (void) const |
Retrieves current macroblock. | |
unsigned short | getMaxSimultaneousLights (void) const |
Gets the maximum number of lights to be used by this pass. | |
const String & | getName (void) const |
Get the name of the pass. | |
size_t | getNumShadowContentTextures (void) const |
unsigned short | getNumTextureUnitStates (void) const |
Returns the number of texture unit settings. | |
Light::LightTypes | getOnlyLightType () const |
Gets the single light type this pass runs for if getIteratePerLight and getRunOnlyForOneLightType are both true. | |
Technique * | getParent (void) const |
Gets the parent Technique. | |
size_t | getPassIterationCount (void) const |
Gets the pass iteration count value. | |
Real | getPointAttenuationConstant (void) const |
Returns the constant coefficient of point attenuation. | |
Real | getPointAttenuationLinear (void) const |
Returns the linear coefficient of point attenuation. | |
Real | getPointAttenuationQuadratic (void) const |
Returns the quadratic coefficient of point attenuation. | |
Real | getPointMaxSize (void) const |
Get the maximum point size, when point attenuation is in use. | |
Real | getPointMinSize (void) const |
Get the minimum point size, when point attenuation is in use. | |
Real | getPointSize (void) const |
Gets the point size of the pass. | |
bool | getPointSpritesEnabled (void) const |
Returns whether point sprites are enabled when rendering a point list. | |
virtual bool | getPolygonModeOverrideable (void) const |
Gets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting. | |
const String & | getResourceGroup (void) const |
Gets the resource group of the ultimate parent Material. | |
bool | getRunOnlyForOneLightType (void) const |
Does this pass run only for a single light type (if getIteratePerLight is true). | |
const ColourValue & | getSelfIllumination (void) const |
Gets the self illumination colour of the pass. | |
ShadeOptions | getShadingMode (void) const |
Returns the type of light shading to be used. | |
const GpuProgramPtr & | getShadowCasterFragmentProgram (void) const |
Gets the fragment program used by this pass when rendering shadow casters, only available after _load(). | |
const String & | getShadowCasterFragmentProgramName (void) const |
Gets the name of the fragment program used by this pass when rendering shadow casters. | |
GpuProgramParametersSharedPtr | getShadowCasterFragmentProgramParameters (void) const |
Gets the fragment program parameters used by this pass when rendering shadow casters. | |
const GpuProgramPtr & | getShadowCasterVertexProgram (void) const |
Gets the vertex program used by this pass when rendering shadow casters, only available after _load(). | |
const String & | getShadowCasterVertexProgramName (void) const |
Gets the name of the vertex program used by this pass when rendering shadow casters. | |
GpuProgramParametersSharedPtr | getShadowCasterVertexProgramParameters (void) const |
Gets the vertex program parameters used by this pass when rendering shadow casters. | |
Real | getShininess (void) const |
Gets the 'shininess' property of the pass (affects specular highlights). | |
const ColourValue & | getSpecular (void) const |
Gets the specular colour reflectance of the pass. | |
unsigned short | getStartLight (void) const |
Gets the light index that this pass will start at in the light list. | |
const GpuProgramPtr & | getTessellationDomainProgram (void) const |
Gets the Tessellation Domain program used by this pass, only available after _load(). | |
const String & | getTessellationDomainProgramName (void) const |
Gets the name of the Domain Evaluation program used by this pass. | |
GpuProgramParametersSharedPtr | getTessellationDomainProgramParameters (void) const |
Gets the Tessellation Domain program parameters used by this pass. | |
const GpuProgramPtr & | getTessellationHullProgram (void) const |
Gets the Tessellation Hull program used by this pass, only available after _load(). | |
const String & | getTessellationHullProgramName (void) const |
Gets the name of the Tessellation Hull program used by this pass. | |
GpuProgramParametersSharedPtr | getTessellationHullProgramParameters (void) const |
Gets the Tessellation Hull program parameters used by this pass. | |
TextureUnitState * | getTextureUnitState (const String &name) |
Retrieves the Texture Unit State matching name. | |
const TextureUnitState * | getTextureUnitState (const String &name) const |
Retrieves the Texture Unit State matching name. | |
TextureUnitState * | getTextureUnitState (size_t index) |
Retrieves a pointer to a texture unit state so it may be modified. | |
const TextureUnitState * | getTextureUnitState (size_t index) const |
Retrieves a const pointer to a texture unit state. | |
unsigned short | getTextureUnitStateIndex (const TextureUnitState *state) const |
Retrieve the index of the Texture Unit State in the pass. | |
TextureUnitStateIterator | getTextureUnitStateIterator (void) |
Get an iterator over the TextureUnitStates contained in this Pass. | |
ConstTextureUnitStateIterator | getTextureUnitStateIterator (void) const |
Get an iterator over the TextureUnitStates contained in this Pass. | |
UserObjectBindings & | getUserObjectBindings () |
Return an instance of user objects binding associated with this class. | |
const UserObjectBindings & | getUserObjectBindings () const |
Return an instance of user objects binding associated with this class. | |
TrackVertexColourType | getVertexColourTracking (void) const |
Gets which material properties follow the vertex colour. | |
const GpuProgramPtr & | getVertexProgram (void) const |
Gets the vertex program used by this pass, only available after _load(). | |
const String & | getVertexProgramName (void) const |
Gets the name of the vertex program used by this pass. | |
GpuProgramParametersSharedPtr | getVertexProgramParameters (void) const |
Gets the vertex program parameters used by this pass. | |
bool | hasComputeProgram (void) const |
Returns true if this pass uses a programmable compute pipeline. | |
bool | hasFragmentProgram (void) const |
Returns true if this pass uses a programmable fragment pipeline. | |
bool | hasGeometryProgram (void) const |
Returns true if this pass uses a programmable geometry pipeline. | |
bool | hasShadowCasterFragmentProgram (void) const |
Returns true if this pass uses a shadow caster fragment program. | |
bool | hasShadowCasterVertexProgram (void) const |
Returns true if this pass uses a shadow caster vertex program. | |
bool | hasTessellationDomainProgram (void) const |
Returns true if this pass uses a programmable tessellation control pipeline. | |
bool | hasTessellationHullProgram (void) const |
Returns true if this pass uses a programmable tessellation control pipeline. | |
bool | hasVertexProgram (void) const |
Returns true if this pass uses a programmable vertex pipeline. | |
void | insertShadowContentTypeLookup (size_t textureUnitIndex) |
Call this function when a texture unit changed to type CONTENT_SHADOW. | |
bool | isAmbientOnly (void) const |
Returns whether this pass is ambient only. | |
bool | isLoaded (void) const |
Is this loaded? | |
bool | isPointAttenuationEnabled (void) const |
Returns whether points are attenuated with distance. | |
bool | isProgrammable (void) const |
Returns true if this pass is programmable i.e. includes either a vertex or fragment program. | |
bool | isTransparent (void) const |
Returns true if this pass has some element of transparency. | |
OGRE_MUTEX (mGpuProgramChangeMutex) | |
OGRE_MUTEX (mTexUnitChangeMutex) | |
OGRE_STATIC_MUTEX (msDirtyHashListMutex) | |
OGRE_STATIC_MUTEX (msPassGraveyardMutex) | |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete (void *ptr, void *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info | |
void * | operator new (size_t sz, void *ptr) |
placement operator new | |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info | |
Pass & | operator= (const Pass &oth) |
Operator = overload. | |
void | recreateShadowContentTypeLookup (void) |
Recreates the contents of mShadowContentTypeLookup from scratch. | |
void | removeAllTextureUnitStates (void) |
Removes all texture unit settings. | |
void | removeShadowContentTypeLookup (size_t textureUnitIndex) |
Call this function when a texture unit is removed (any type), or when a tex unit that used to be of type CONTENT_SHADOW, no longer is. | |
void | removeTextureUnitState (unsigned short index) |
Removes the indexed texture unit state from this pass. | |
void | setAlphaRejectFunction (CompareFunction func) |
Sets the alpha reject function. | |
void | setAlphaRejectValue (unsigned char val) |
Gets the alpha reject value. | |
void | setAmbient (const ColourValue &ambient) |
Sets the ambient colour reflectance properties of this pass. | |
void | setAmbient (Real red, Real green, Real blue) |
Sets the ambient colour reflectance properties of this pass. | |
void | setBlendblock (const HlmsBlendblock &blendblock) |
Changes the current blendblock for a new one. Pointer can't be null. | |
void | setComputeProgram (const String &name, bool resetParams=true) |
Sets the details of the compute program to use. | |
void | setComputeProgramParameters (GpuProgramParametersSharedPtr params) |
Sets the Tessellation Evaluation program parameters. | |
void | setDiffuse (const ColourValue &diffuse) |
Sets the diffuse colour reflectance properties of this pass. | |
void | setDiffuse (Real red, Real green, Real blue, Real alpha) |
Sets the diffuse colour reflectance properties of this pass. | |
void | setEmissive (const ColourValue &emissive) |
Sets the amount of self-illumination an object has. | |
void | setEmissive (Real red, Real green, Real blue) |
Sets the amount of self-illumination an object has. | |
void | setFog (bool overrideScene, FogMode mode=FOG_NONE, const ColourValue &colour=ColourValue::White, Real expDensity=0.001, Real linearStart=0.0, Real linearEnd=1.0) |
Sets the fogging mode applied to this pass. | |
void | setFragmentProgram (const String &name, bool resetParams=true) |
Sets the details of the fragment program to use. | |
void | setFragmentProgramParameters (GpuProgramParametersSharedPtr params) |
Sets the fragment program parameters. | |
void | setGeometryProgram (const String &name, bool resetParams=true) |
Sets the details of the geometry program to use. | |
void | setGeometryProgramParameters (GpuProgramParametersSharedPtr params) |
Sets the geometry program parameters. | |
void | setIteratePerLight (bool enabled, bool onlyForOneLightType=true, Light::LightTypes lightType=Light::LT_POINT) |
Sets whether or not this pass should iterate per light or number of lights which can affect the object being rendered. | |
void | setLightClipPlanesEnabled (bool enabled) |
Gets whether or not this pass will be clipped by user clips planes bounding the area covered by the light. | |
void | setLightCountPerIteration (unsigned short c) |
If light iteration is enabled, determine the number of lights per iteration. | |
void | setLightMask (uint32 mask) |
Sets the light mask which can be matched to specific light flags to be handled by this pass. | |
void | setLightScissoringEnabled (bool enabled) |
Sets whether or not this pass will be clipped by a scissor rectangle encompassing the lights that are being used in it. | |
void | setMacroblock (const HlmsMacroblock ¯oblock) |
Changes the current macroblock for a new one. Pointer can't be null. | |
void | setMaxSimultaneousLights (unsigned short maxLights) |
Sets the maximum number of lights to be used by this pass. | |
void | setName (const String &name) |
void | setPassIterationCount (const size_t count) |
set the number of iterations that this pass should perform when doing fast multi pass operation. | |
void | setPointAttenuation (bool enabled, Real constant=0.0f, Real linear=1.0f, Real quadratic=0.0f) |
Sets how points are attenuated with distance. | |
void | setPointMaxSize (Real max) |
Set the maximum point size, when point attenuation is in use. | |
void | setPointMinSize (Real min) |
Set the minimum point size, when point attenuation is in use. | |
void | setPointSize (Real ps) |
Sets the point size of this pass. | |
void | setPointSpritesEnabled (bool enabled) |
Sets whether or not rendering points using OT_POINT_LIST will render point sprites (textured quads) or plain points (dots). | |
virtual void | setPolygonModeOverrideable (bool override) |
Sets whether this pass's chosen detail level can be overridden (downgraded) by the camera setting. | |
void | setSamplerblock (const HlmsSamplerblock &samplerblock) |
Set samplerblock for every texture unit. | |
void | setSelfIllumination (const ColourValue &selfIllum) |
Sets the amount of self-illumination an object has. | |
void | setSelfIllumination (Real red, Real green, Real blue) |
Sets the amount of self-illumination an object has. | |
void | setShadingMode (ShadeOptions mode) |
Sets the type of light shading required. | |
void | setShadowCasterFragmentProgram (const String &name) |
Sets the details of the fragment program to use when rendering as a shadow caster. | |
void | setShadowCasterFragmentProgramParameters (GpuProgramParametersSharedPtr params) |
Sets the fragment program parameters for rendering as a shadow caster. | |
void | setShadowCasterVertexProgram (const String &name) |
Sets the details of the vertex program to use when rendering as a shadow caster. | |
void | setShadowCasterVertexProgramParameters (GpuProgramParametersSharedPtr params) |
Sets the vertex program parameters for rendering as a shadow caster. | |
void | setShininess (Real val) |
Sets the shininess of the pass, affecting the size of specular highlights. | |
void | setSpecular (const ColourValue &specular) |
Sets the specular colour reflectance properties of this pass. | |
void | setSpecular (Real red, Real green, Real blue, Real alpha) |
Sets the specular colour reflectance properties of this pass. | |
void | setStartLight (unsigned short startLight) |
Sets the light index that this pass will start at in the light list. | |
void | setTessellationDomainProgram (const String &name, bool resetParams=true) |
Sets the details of the Tessellation domain program to use. | |
void | setTessellationDomainProgramParameters (GpuProgramParametersSharedPtr params) |
Sets the Tessellation Domain program parameters. | |
void | setTessellationHullProgram (const String &name, bool resetParams=true) |
Support for shader model 5.0, hull and domain shaders. | |
void | setTessellationHullProgramParameters (GpuProgramParametersSharedPtr params) |
Sets the Tessellation Hull program parameters. | |
void | setVertexColourTracking (TrackVertexColourType tracking) |
Sets which material properties follow the vertex colour. | |
void | setVertexProgram (const String &name, bool resetParams=true) |
Sets the details of the vertex program to use. | |
void | setVertexProgramParameters (GpuProgramParametersSharedPtr params) |
Sets the vertex program parameters. | |
Static Public Member Functions | |
static void | _getBlendFlags (SceneBlendType type, SceneBlendFactor &source, SceneBlendFactor &dest) |
Used to get scene blending flags from a blending type. | |
Class defining a single pass of a Technique (of a Material), i.e.
a single rendering call.
|
virtual |
|
static |
Used to get scene blending flags from a blending type.
HlmsDatablock * Ogre::Pass::_getDatablock | ( | void | ) | const |
Gets the internal datablock that acts as proxy for us.
size_t Ogre::Pass::_getTextureUnitWithContentTypeIndex | ( | TextureUnitState::ContentType | contentType, |
size_t | index | ||
) | const |
Gets the 'nth' texture which references the given content type.
Internal method for undoing the load preparartion for this pass.
void Ogre::Pass::_updateAutoParams | ( | const AutoParamDataSource * | source, |
uint16 | variabilityMask | ||
) | const |
Update automatic parameters.
source | The source of the parameters |
variabilityMask | A mask of GpuParamVariability which identifies which autos will need updating |
void Ogre::Pass::addTextureUnitState | ( | TextureUnitState * | state | ) |
Adds the passed in TextureUnitState, to the existing Pass.
state | The Texture Unit State to be attached to this pass. It must not be attached to another pass. |
bool Ogre::Pass::applyTextureAliases | ( | const AliasTextureNamePairList & | aliasList, |
const bool | apply = true |
||
) | const |
Applies texture names to Texture Unit State with matching texture name aliases.
All Texture Unit States within the pass are checked. If matching texture aliases are found then true is returned.
aliasList | is a map container of texture alias, texture name pairs |
apply | set true to apply the texture aliases else just test to see if texture alias matches are found. |
TextureUnitState * Ogre::Pass::createTextureUnitState | ( | const String & | textureName, |
unsigned short | texCoordSet = 0 |
||
) |
Inserts a new TextureUnitState object into the Pass.
textureName | The basic name of the texture e.g. brickwall.jpg, stonefloor.png |
texCoordSet | The index of the texture coordinate set to use. |
TextureUnitState * Ogre::Pass::createTextureUnitState | ( | void | ) |
Inserts a new TextureUnitState object into the Pass.
|
inline |
Gets the alpha reject function.
See setAlphaRejectSettings for more information.
Gets the alpha reject value.
See setAlphaRejectSettings for more information.
const ColourValue & Ogre::Pass::getAmbient | ( | void | ) | const |
Gets the ambient colour reflectance of the pass.
const HlmsBlendblock * Ogre::Pass::getBlendblock | ( | void | ) | const |
Retrieves current blendblock.
Don't const_cast the return value to modify it. @See HlmsDatablock remarks.
Determines if colour buffer writing is enabled for this pass.
const GpuProgramPtr & Ogre::Pass::getComputeProgram | ( | void | ) | const |
Gets the Tessellation EHull program used by this pass, only available after _load().
Gets the name of the Tessellation Hull program used by this pass.
GpuProgramParametersSharedPtr Ogre::Pass::getComputeProgramParameters | ( | void | ) | const |
Gets the Tessellation Hull program parameters used by this pass.
const ColourValue & Ogre::Pass::getDiffuse | ( | void | ) | const |
Gets the diffuse colour reflectance of the pass.
|
inline |
Gets the self illumination colour of the pass.
const ColourValue & Ogre::Pass::getFogColour | ( | void | ) | const |
Returns the fog colour for the scene.
Returns the fog density for this pass.
Returns the fog end distance for this pass.
Returns the fog mode for this pass.
Returns true if this pass is to override the scene fog settings.
Returns the fog start distance for this pass.
const GpuProgramPtr & Ogre::Pass::getFragmentProgram | ( | void | ) | const |
Gets the fragment program used by this pass, only available after _load().
Gets the name of the fragment program used by this pass.
GpuProgramParametersSharedPtr Ogre::Pass::getFragmentProgramParameters | ( | void | ) | const |
Gets the fragment program parameters used by this pass.
const GpuProgramPtr & Ogre::Pass::getGeometryProgram | ( | void | ) | const |
Gets the geometry program used by this pass, only available after _load().
Gets the name of the geometry program used by this pass.
GpuProgramParametersSharedPtr Ogre::Pass::getGeometryProgramParameters | ( | void | ) | const |
Gets the geometry program parameters used by this pass.
Does this pass run once for every light in range?
|
inline |
Gets whether or not this pass will be clipped by user clips planes bounding the area covered by the light.
If light iteration is enabled, determine the number of lights per iteration.
uint32 Ogre::Pass::getLightMask | ( | ) | const |
Gets the light mask controlling which lights are used for this pass.
|
inline |
Gets whether or not this pass will be clipped by a scissor rectangle encompassing the lights that are being used in it.
const HlmsMacroblock * Ogre::Pass::getMacroblock | ( | void | ) | const |
Retrieves current macroblock.
Don't const_cast the return value to modify it. @See HlmsDatablock remarks.
Gets the maximum number of lights to be used by this pass.
Returns the number of texture unit settings.
|
inline |
Gets the single light type this pass runs for if getIteratePerLight and getRunOnlyForOneLightType are both true.
Returns the constant coefficient of point attenuation.
Returns the linear coefficient of point attenuation.
Returns the quadratic coefficient of point attenuation.
Get the maximum point size, when point attenuation is in use.
Get the minimum point size, when point attenuation is in use.
Gets the point size of the pass.
Returns whether point sprites are enabled when rendering a point list.
Gets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting.
Gets the resource group of the ultimate parent Material.
Does this pass run only for a single light type (if getIteratePerLight is true).
const ColourValue & Ogre::Pass::getSelfIllumination | ( | void | ) | const |
Gets the self illumination colour of the pass.
ShadeOptions Ogre::Pass::getShadingMode | ( | void | ) | const |
Returns the type of light shading to be used.
const GpuProgramPtr & Ogre::Pass::getShadowCasterFragmentProgram | ( | void | ) | const |
Gets the fragment program used by this pass when rendering shadow casters, only available after _load().
Gets the name of the fragment program used by this pass when rendering shadow casters.
GpuProgramParametersSharedPtr Ogre::Pass::getShadowCasterFragmentProgramParameters | ( | void | ) | const |
Gets the fragment program parameters used by this pass when rendering shadow casters.
const GpuProgramPtr & Ogre::Pass::getShadowCasterVertexProgram | ( | void | ) | const |
Gets the vertex program used by this pass when rendering shadow casters, only available after _load().
Gets the name of the vertex program used by this pass when rendering shadow casters.
GpuProgramParametersSharedPtr Ogre::Pass::getShadowCasterVertexProgramParameters | ( | void | ) | const |
Gets the vertex program parameters used by this pass when rendering shadow casters.
Gets the 'shininess' property of the pass (affects specular highlights).
const ColourValue & Ogre::Pass::getSpecular | ( | void | ) | const |
Gets the specular colour reflectance of the pass.
Gets the light index that this pass will start at in the light list.
const GpuProgramPtr & Ogre::Pass::getTessellationDomainProgram | ( | void | ) | const |
Gets the Tessellation Domain program used by this pass, only available after _load().
Gets the name of the Domain Evaluation program used by this pass.
GpuProgramParametersSharedPtr Ogre::Pass::getTessellationDomainProgramParameters | ( | void | ) | const |
Gets the Tessellation Domain program parameters used by this pass.
const GpuProgramPtr & Ogre::Pass::getTessellationHullProgram | ( | void | ) | const |
Gets the Tessellation Hull program used by this pass, only available after _load().
Gets the name of the Tessellation Hull program used by this pass.
GpuProgramParametersSharedPtr Ogre::Pass::getTessellationHullProgramParameters | ( | void | ) | const |
Gets the Tessellation Hull program parameters used by this pass.
TextureUnitState * Ogre::Pass::getTextureUnitState | ( | const String & | name | ) |
Retrieves the Texture Unit State matching name.
Returns 0 if name match is not found.
const TextureUnitState * Ogre::Pass::getTextureUnitState | ( | const String & | name | ) | const |
Retrieves the Texture Unit State matching name.
Returns 0 if name match is not found.
TextureUnitState * Ogre::Pass::getTextureUnitState | ( | size_t | index | ) |
Retrieves a pointer to a texture unit state so it may be modified.
const TextureUnitState * Ogre::Pass::getTextureUnitState | ( | size_t | index | ) | const |
Retrieves a const pointer to a texture unit state.
unsigned short Ogre::Pass::getTextureUnitStateIndex | ( | const TextureUnitState * | state | ) | const |
TextureUnitStateIterator Ogre::Pass::getTextureUnitStateIterator | ( | void | ) |
Get an iterator over the TextureUnitStates contained in this Pass.
ConstTextureUnitStateIterator Ogre::Pass::getTextureUnitStateIterator | ( | void | ) | const |
Get an iterator over the TextureUnitStates contained in this Pass.
|
inline |
Return an instance of user objects binding associated with this class.
You can use it to associate one or more custom objects with this class instance.
|
inline |
Return an instance of user objects binding associated with this class.
You can use it to associate one or more custom objects with this class instance.
TrackVertexColourType Ogre::Pass::getVertexColourTracking | ( | void | ) | const |
Gets which material properties follow the vertex colour.
const GpuProgramPtr & Ogre::Pass::getVertexProgram | ( | void | ) | const |
Gets the vertex program used by this pass, only available after _load().
Gets the name of the vertex program used by this pass.
GpuProgramParametersSharedPtr Ogre::Pass::getVertexProgramParameters | ( | void | ) | const |
Gets the vertex program parameters used by this pass.
Returns true if this pass uses a programmable compute pipeline.
Returns true if this pass uses a programmable fragment pipeline.
Returns true if this pass uses a programmable geometry pipeline.
Returns true if this pass uses a shadow caster fragment program.
Returns true if this pass uses a shadow caster vertex program.
Returns true if this pass uses a programmable tessellation control pipeline.
Returns true if this pass uses a programmable tessellation control pipeline.
Returns true if this pass uses a programmable vertex pipeline.
Call this function when a texture unit changed to type CONTENT_SHADOW.
textureUnitIndex | Texture Unit index of the TU being changed |
Returns whether points are attenuated with distance.
Returns true if this pass is programmable i.e. includes either a vertex or fragment program.
Returns true if this pass has some element of transparency.
Ogre::Pass::OGRE_MUTEX | ( | mGpuProgramChangeMutex | ) |
Ogre::Pass::OGRE_MUTEX | ( | mTexUnitChangeMutex | ) |
Ogre::Pass::OGRE_STATIC_MUTEX | ( | msDirtyHashListMutex | ) |
Ogre::Pass::OGRE_STATIC_MUTEX | ( | msPassGraveyardMutex | ) |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
operator new, with debug line info
placement operator new
|
inlineinherited |
|
inlineinherited |
array operator new, with debug line info
Recreates the contents of mShadowContentTypeLookup from scratch.
Call this function when a texture unit is removed (any type), or when a tex unit that used to be of type CONTENT_SHADOW, no longer is.
Removes the indexed texture unit state from this pass.
void Ogre::Pass::setAlphaRejectFunction | ( | CompareFunction | func | ) |
Sets the alpha reject function.
See setAlphaRejectSettings for more information.
Gets the alpha reject value.
See setAlphaRejectSettings for more information.
void Ogre::Pass::setAmbient | ( | const ColourValue & | ambient | ) |
Sets the ambient colour reflectance properties of this pass.
Sets the ambient colour reflectance properties of this pass.
void Ogre::Pass::setBlendblock | ( | const HlmsBlendblock & | blendblock | ) |
Changes the current blendblock for a new one. Pointer can't be null.
Sets the details of the compute program to use.
name | The name of the program - this must have been created using GpuProgramManager by the time that this Pass is loaded. If this parameter is blank, any compute program in this pass is disabled. |
resetParams | If true, this will create a fresh set of parameters from the new program being linked, so if you had previously set parameters you will have to set them again. If you set this to false, you must be absolutely sure that the parameters match perfectly, and in the case of named parameters refers to the indexes underlying them, not just the names. |
void Ogre::Pass::setComputeProgramParameters | ( | GpuProgramParametersSharedPtr | params | ) |
Sets the Tessellation Evaluation program parameters.
void Ogre::Pass::setDiffuse | ( | const ColourValue & | diffuse | ) |
Sets the diffuse colour reflectance properties of this pass.
Sets the diffuse colour reflectance properties of this pass.
|
inline |
Sets the amount of self-illumination an object has.
Sets the amount of self-illumination an object has.
void Ogre::Pass::setFog | ( | bool | overrideScene, |
FogMode | mode = FOG_NONE , |
||
const ColourValue & | colour = ColourValue::White , |
||
Real | expDensity = 0.001 , |
||
Real | linearStart = 0.0 , |
||
Real | linearEnd = 1.0 |
||
) |
Sets the fogging mode applied to this pass.
overrideScene | If true, you authorise this pass to override the scene's fog params with it's own settings. If you specify false, so other parameters are necessary, and this is the default behaviour for passes. |
mode | Only applicable if overrideScene is true. You can disable fog which is turned on for the rest of the scene by specifying FOG_NONE. Otherwise, set a pass-specific fog mode as defined in the enum FogMode. |
colour | The colour of the fog. Either set this to the same as your viewport background colour, or to blend in with a skydome or skybox. |
expDensity | The density of the fog in FOG_EXP or FOG_EXP2 mode, as a value between 0 and 1. The default is 0.001. |
linearStart | Distance in world units at which linear fog starts to encroach. Only applicable if mode is FOG_LINEAR. |
linearEnd | Distance in world units at which linear fog becomes completely opaque. Only applicable if mode is FOG_LINEAR. |
Sets the details of the fragment program to use.
name | The name of the program - this must have been created using GpuProgramManager by the time that this Pass is loaded. If this parameter is blank, any fragment program in this pass is disabled. |
resetParams | If true, this will create a fresh set of parameters from the new program being linked, so if you had previously set parameters you will have to set them again. If you set this to false, you must be absolutely sure that the parameters match perfectly, and in the case of named parameters refers to the indexes underlying them, not just the names. |
void Ogre::Pass::setFragmentProgramParameters | ( | GpuProgramParametersSharedPtr | params | ) |
Sets the fragment program parameters.
Sets the details of the geometry program to use.
name | The name of the program - this must have been created using GpuProgramManager by the time that this Pass is loaded. If this parameter is blank, any geometry program in this pass is disabled. |
resetParams | If true, this will create a fresh set of parameters from the new program being linked, so if you had previously set parameters you will have to set them again. If you set this to false, you must be absolutely sure that the parameters match perfectly, and in the case of named parameters refers to the indexes underlying them, not just the names. |
void Ogre::Pass::setGeometryProgramParameters | ( | GpuProgramParametersSharedPtr | params | ) |
Sets the geometry program parameters.
void Ogre::Pass::setIteratePerLight | ( | bool | enabled, |
bool | onlyForOneLightType = true , |
||
Light::LightTypes | lightType = Light::LT_POINT |
||
) |
Sets whether or not this pass should iterate per light or number of lights which can affect the object being rendered.
enabled | Whether this feature is enabled |
onlyForOneLightType | If true, the pass will only be run for a single type of light, other light types will be ignored. |
lightType | The single light type which will be considered for this pass |
Gets whether or not this pass will be clipped by user clips planes bounding the area covered by the light.
If light iteration is enabled, determine the number of lights per iteration.
Sets the light mask which can be matched to specific light flags to be handled by this pass.
Sets whether or not this pass will be clipped by a scissor rectangle encompassing the lights that are being used in it.
void Ogre::Pass::setMacroblock | ( | const HlmsMacroblock & | macroblock | ) |
Changes the current macroblock for a new one. Pointer can't be null.
Sets the maximum number of lights to be used by this pass.
set the number of iterations that this pass should perform when doing fast multi pass operation.
count | number of iterations to perform fast multi pass operations. A value greater than 1 will cause the pass to be executed count number of times without changing the render state. This is very useful for passes that use programmable shaders that have to iterate more than once but don't need a render state change. Using multi pass can dramatically speed up rendering for materials that do things like fur, blur. A value of 1 turns off multi pass operation and the pass does the normal pass operation. |
void Ogre::Pass::setPointAttenuation | ( | bool | enabled, |
Real | constant = 0.0f , |
||
Real | linear = 1.0f , |
||
Real | quadratic = 0.0f |
||
) |
Sets how points are attenuated with distance.
enabled | Whether point attenuation is enabled |
constant,linear,quadratic | Parameters to the attenuation function defined above |
Set the maximum point size, when point attenuation is in use.
Set the minimum point size, when point attenuation is in use.
Sets the point size of this pass.
Sets whether or not rendering points using OT_POINT_LIST will render point sprites (textured quads) or plain points (dots).
enabled | True enables point sprites, false returns to normal point rendering. |
Sets whether this pass's chosen detail level can be overridden (downgraded) by the camera setting.
override | true means that a lower camera detail will override this pass's detail level, false means it won't (default true). |
void Ogre::Pass::setSamplerblock | ( | const HlmsSamplerblock & | samplerblock | ) |
Set samplerblock for every texture unit.
void Ogre::Pass::setSelfIllumination | ( | const ColourValue & | selfIllum | ) |
Sets the amount of self-illumination an object has.
Sets the amount of self-illumination an object has.
void Ogre::Pass::setShadingMode | ( | ShadeOptions | mode | ) |
Sets the type of light shading required.
Sets the details of the fragment program to use when rendering as a shadow caster.
void Ogre::Pass::setShadowCasterFragmentProgramParameters | ( | GpuProgramParametersSharedPtr | params | ) |
Sets the fragment program parameters for rendering as a shadow caster.
Sets the details of the vertex program to use when rendering as a shadow caster.
void Ogre::Pass::setShadowCasterVertexProgramParameters | ( | GpuProgramParametersSharedPtr | params | ) |
Sets the vertex program parameters for rendering as a shadow caster.
Sets the shininess of the pass, affecting the size of specular highlights.
void Ogre::Pass::setSpecular | ( | const ColourValue & | specular | ) |
Sets the specular colour reflectance properties of this pass.
Sets the specular colour reflectance properties of this pass.
Sets the light index that this pass will start at in the light list.
Sets the details of the Tessellation domain program to use.
name | The name of the program - this must have been created using GpuProgramManager by the time that this Pass is loaded. If this parameter is blank, any Tessellation domain program in this pass is disabled. |
resetParams | If true, this will create a fresh set of parameters from the new program being linked, so if you had previously set parameters you will have to set them again. If you set this to false, you must be absolutely sure that the parameters match perfectly, and in the case of named parameters refers to the indexes underlying them, not just the names. |
void Ogre::Pass::setTessellationDomainProgramParameters | ( | GpuProgramParametersSharedPtr | params | ) |
Sets the Tessellation Domain program parameters.
Support for shader model 5.0, hull and domain shaders.
Sets the details of the Tessellation control program to use.
name | The name of the program - this must have been created using GpuProgramManager by the time that this Pass is loaded. If this parameter is blank, any Tessellation Hull program in this pass is disabled. |
resetParams | If true, this will create a fresh set of parameters from the new program being linked, so if you had previously set parameters you will have to set them again. If you set this to false, you must be absolutely sure that the parameters match perfectly, and in the case of named parameters refers to the indexes underlying them, not just the names. |
void Ogre::Pass::setTessellationHullProgramParameters | ( | GpuProgramParametersSharedPtr | params | ) |
Sets the Tessellation Hull program parameters.
void Ogre::Pass::setVertexColourTracking | ( | TrackVertexColourType | tracking | ) |
Sets which material properties follow the vertex colour.
Sets the details of the vertex program to use.
name | The name of the program - this must have been created using GpuProgramManager by the time that this Pass is loaded. If this parameter is blank, any vertex program in this pass is disabled. |
resetParams | If true, this will create a fresh set of parameters from the new program being linked, so if you had previously set parameters you will have to set them again. If you set this to false, you must be absolutely sure that the parameters match perfectly, and in the case of named parameters refers to the indexes underlying them, not just the names. |
void Ogre::Pass::setVertexProgramParameters | ( | GpuProgramParametersSharedPtr | params | ) |
Sets the vertex program parameters.