Class representing an approach to rendering this particular Material. More...
#include <OgreTechnique.h>
Classes | |
struct | GPUDeviceNameRule |
Rule controlling whether technique is deemed supported based on GPU device name. More... | |
struct | GPUVendorRule |
Rule controlling whether technique is deemed supported based on GPU vendor. More... | |
Public Types | |
enum | IncludeOrExclude { INCLUDE = 0, EXCLUDE = 1 } |
Directive used to manually control technique support based on the inclusion or exclusion of some factor. More... | |
typedef vector< GPUVendorRule > ::type | GPUVendorRuleList |
typedef vector < GPUDeviceNameRule >::type | GPUDeviceNameRuleList |
typedef VectorIterator< Passes > | PassIterator |
typedef VectorIterator < IlluminationPassList > | IlluminationPassIterator |
typedef ConstVectorIterator < GPUVendorRuleList > | GPUVendorRuleIterator |
typedef ConstVectorIterator < GPUDeviceNameRuleList > | GPUDeviceNameRuleIterator |
Public Member Functions | |
Technique (Material *parent) | |
Constructor. | |
Technique (Material *parent, const Technique &oth) | |
Copy constructor. | |
~Technique () | |
bool | isSupported (void) const |
Indicates if this technique is supported by the current graphics card. | |
String | _compile (bool autoManageTextureUnits) |
Internal compilation method; see Material::compile. | |
bool | checkGPURules (StringUtil::StrStreamType &errors) |
Internal method for checking GPU vendor / device rules. | |
bool | checkHardwareSupport (bool autoManageTextureUnits, StringUtil::StrStreamType &compileErrors) |
Internal method for checking hardware support. | |
void | _compileIlluminationPasses (void) |
Internal method for splitting the passes into illumination passes. | |
Pass * | createPass (void) |
Creates a new Pass for this Technique. | |
Pass * | getPass (unsigned short index) |
Retrieves the Pass with the given index. | |
Pass * | getPass (const String &name) |
Retrieves the Pass matching name. | |
unsigned short | getNumPasses (void) const |
Retrieves the number of passes. | |
void | removePass (unsigned short index) |
Removes the Pass with the given index. | |
void | removeAllPasses (void) |
Removes all Passes from this Technique. | |
bool | movePass (const unsigned short sourceIndex, const unsigned short destinationIndex) |
Move a pass from source index to destination index. | |
const PassIterator | getPassIterator (void) |
Gets an iterator over the passes in this Technique. | |
const IlluminationPassIterator | getIlluminationPassIterator (void) |
Gets an iterator over the illumination-stage categorised passes. | |
Material * | getParent (void) const |
Gets the parent Material. | |
Technique & | operator= (const Technique &rhs) |
Overloaded operator to copy on Technique to another. | |
const String & | getResourceGroup (void) const |
Gets the resource group of the ultimate parent Material. | |
bool | isTransparent (void) const |
Returns true if this Technique involves transparency. | |
bool | isTransparentSortingEnabled (void) const |
Returns true if this Technique has transparent sorting enabled. | |
bool | isTransparentSortingForced (void) const |
Returns true if this Technique has transparent sorting forced. | |
void | _prepare (void) |
Internal prepare method, derived from call to Material::prepare. | |
void | _unprepare (void) |
Internal unprepare method, derived from call to Material::unprepare. | |
void | _load (void) |
Internal load method, derived from call to Material::load. | |
void | _unload (void) |
Internal unload method, derived from call to Material::unload. | |
bool | isLoaded (void) const |
void | _notifyNeedsRecompile (void) |
Tells the technique that it needs recompilation. | |
Ogre::MaterialPtr | getShadowCasterMaterial () const |
return this material specific shadow casting specific material | |
void | setShadowCasterMaterial (Ogre::MaterialPtr val) |
set this material specific shadow casting specific material | |
void | setShadowCasterMaterial (const Ogre::String &name) |
set this material specific shadow casting specific material | |
Ogre::MaterialPtr | getShadowReceiverMaterial () const |
return this material specific shadow receiving specific material | |
void | setShadowReceiverMaterial (Ogre::MaterialPtr val) |
set this material specific shadow receiving specific material | |
void | setShadowReceiverMaterial (const Ogre::String &name) |
set this material specific shadow receiving specific material | |
void | setPointSize (Real ps) |
Sets the point size properties for every Pass in this Technique. | |
void | setAmbient (Real red, Real green, Real blue) |
Sets the ambient colour reflectance properties for every Pass in every Technique. | |
void | setAmbient (const ColourValue &ambient) |
Sets the ambient colour reflectance properties for every Pass in every Technique. | |
void | setDiffuse (Real red, Real green, Real blue, Real alpha) |
Sets the diffuse colour reflectance properties of every Pass in every Technique. | |
void | setDiffuse (const ColourValue &diffuse) |
Sets the diffuse colour reflectance properties of every Pass in every Technique. | |
void | setSpecular (Real red, Real green, Real blue, Real alpha) |
Sets the specular colour reflectance properties of every Pass in every Technique. | |
void | setSpecular (const ColourValue &specular) |
Sets the specular colour reflectance properties of every Pass in every Technique. | |
void | setShininess (Real val) |
Sets the shininess properties of every Pass in every Technique. | |
void | setSelfIllumination (Real red, Real green, Real blue) |
Sets the amount of self-illumination of every Pass in every Technique. | |
void | setSelfIllumination (const ColourValue &selfIllum) |
Sets the amount of self-illumination of every Pass in every Technique. | |
void | setDepthCheckEnabled (bool enabled) |
Sets whether or not each Pass renders with depth-buffer checking on or not. | |
void | setDepthWriteEnabled (bool enabled) |
Sets whether or not each Pass renders with depth-buffer writing on or not. | |
void | setDepthFunction (CompareFunction func) |
Sets the function used to compare depth values when depth checking is on. | |
void | setColourWriteEnabled (bool enabled) |
Sets whether or not colour buffer writing is enabled for each Pass. | |
void | setCullingMode (CullingMode mode) |
Sets the culling mode for each pass based on the 'vertex winding'. | |
void | setManualCullingMode (ManualCullingMode mode) |
Sets the manual culling mode, performed by CPU rather than hardware. | |
void | setLightingEnabled (bool enabled) |
Sets whether or not dynamic lighting is enabled for every Pass. | |
void | setShadingMode (ShadeOptions mode) |
Sets the type of light shading required. | |
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 each pass. | |
void | setDepthBias (float constantBias, float slopeScaleBias) |
Sets the depth bias to be used for each Pass. | |
void | setTextureFiltering (TextureFilterOptions filterType) |
Set texture filtering for every texture unit in every Pass. | |
void | setTextureAnisotropy (unsigned int maxAniso) |
Sets the anisotropy level to be used for all textures. | |
void | setSceneBlending (const SceneBlendType sbt) |
Sets the kind of blending every pass has with the existing contents of the scene. | |
void | setSeparateSceneBlending (const SceneBlendType sbt, const SceneBlendType sbta) |
Sets the kind of blending every pass has with the existing contents of the scene, using individual factors both color and alpha channels. | |
void | setSceneBlending (const SceneBlendFactor sourceFactor, const SceneBlendFactor destFactor) |
Allows very fine control of blending every Pass with the existing contents of the scene. | |
void | setSeparateSceneBlending (const SceneBlendFactor sourceFactor, const SceneBlendFactor destFactor, const SceneBlendFactor sourceFactorAlpha, const SceneBlendFactor destFactorAlpha) |
Allows very fine control of blending every Pass with the existing contents of the scene, using individual factors both color and alpha channels. | |
void | setLodIndex (unsigned short index) |
Assigns a level-of-detail (LOD) index to this Technique. | |
unsigned short | getLodIndex (void) const |
Gets the level-of-detail index assigned to this Technique. | |
void | setSchemeName (const String &schemeName) |
Set the 'scheme name' for this technique. | |
const String & | getSchemeName (void) const |
Returns the scheme to which this technique is assigned. | |
unsigned short | _getSchemeIndex (void) const |
Internal method for getting the scheme index. | |
bool | isDepthWriteEnabled (void) const |
Is depth writing going to occur on this technique? | |
bool | isDepthCheckEnabled (void) const |
Is depth checking going to occur on this technique? | |
bool | hasColourWriteDisabled (void) const |
Exists colour writing disabled pass on this technique? | |
void | setName (const String &name) |
Set the name of the technique. | |
const String & | getName (void) const |
Gets the name of the technique. | |
bool | applyTextureAliases (const AliasTextureNamePairList &aliasList, const bool apply=true) const |
Applies texture names to Texture Unit State with matching texture name aliases. | |
void | addGPUVendorRule (GPUVendor vendor, IncludeOrExclude includeOrExclude) |
Add a rule which manually influences the support for this technique based on a GPU vendor. | |
void | addGPUVendorRule (const GPUVendorRule &rule) |
Add a rule which manually influences the support for this technique based on a GPU vendor. | |
void | removeGPUVendorRule (GPUVendor vendor) |
Removes a matching vendor rule. | |
GPUVendorRuleIterator | getGPUVendorRuleIterator () const |
Get an iterator over the currently registered vendor rules. | |
void | addGPUDeviceNameRule (const String &devicePattern, IncludeOrExclude includeOrExclude, bool caseSensitive=false) |
Add a rule which manually influences the support for this technique based on a pattern that matches a GPU device name (e.g. | |
void | addGPUDeviceNameRule (const GPUDeviceNameRule &rule) |
Add a rule which manually influences the support for this technique based on a pattern that matches a GPU device name (e.g. | |
void | removeGPUDeviceNameRule (const String &devicePattern) |
Removes a matching device name rule. | |
GPUDeviceNameRuleIterator | getGPUDeviceNameRuleIterator () const |
Get an iterator over the currently registered device name rules. | |
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. | |
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 * | operator new (size_t sz, void *ptr) |
placement operator new | |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info | |
void * | operator new[] (size_t sz) |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, void *) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
Protected Types | |
enum | IlluminationPassesState { IPS_COMPILE_DISABLED = -1, IPS_NOT_COMPILED = 0, IPS_COMPILED = 1 } |
typedef vector< Pass * >::type | Passes |
Protected Member Functions | |
void | clearIlluminationPasses (void) |
Internal method for clearing illumination pass list. | |
bool | checkManuallyOrganisedIlluminationPasses () |
Internal method - check for manually assigned illumination passes. | |
Protected Attributes | |
Passes | mPasses |
List of primary passes. | |
IlluminationPassList | mIlluminationPasses |
List of derived passes, categorised into IlluminationStage (ordered). | |
Material * | mParent |
bool | mIsSupported |
IlluminationPassesState | mIlluminationPassesCompilationPhase |
unsigned short | mLodIndex |
LOD level. | |
unsigned short | mSchemeIndex |
Scheme index, derived from scheme name but the names are held on MaterialManager, for speed an index is used here. | |
String | mName |
MaterialPtr | mShadowCasterMaterial |
When casting shadow, if not using default Ogre shadow casting material, or nor using fixed function casting, mShadowCasterMaterial let you customize per material shadow caster behavior. | |
String | mShadowCasterMaterialName |
When casting shadow, if not using default Ogre shadow casting material, or nor using fixed function casting, mShadowCasterMaterial let you customize per material shadow caster behavior.There only material name is stored so that it can be loaded once all file parsed in a resource group. | |
MaterialPtr | mShadowReceiverMaterial |
When receiving shadow, if not using default Ogre shadow receiving material, or nor using fixed function texture projection receiving, mShadowReceiverMaterial let you customize per material shadow caster behavior. | |
String | mShadowReceiverMaterialName |
When receiving shadow, if not using default Ogre shadow receiving material, or nor using fixed function texture projection receiving, mShadowReceiverMaterial let you customize per material shadow caster behavior. | |
UserObjectBindings | mUserObjectBindings |
GPUVendorRuleList | mGPUVendorRules |
GPUDeviceNameRuleList | mGPUDeviceNameRules |
Class representing an approach to rendering this particular Material.
Definition at line 53 of file OgreTechnique.h.
Definition at line 692 of file OgreTechnique.h.
typedef vector<GPUDeviceNameRule>::type Ogre::Technique::GPUDeviceNameRuleList |
Definition at line 143 of file OgreTechnique.h.
Definition at line 651 of file OgreTechnique.h.
typedef vector<GPUVendorRule>::type Ogre::Technique::GPUVendorRuleList |
Definition at line 142 of file OgreTechnique.h.
Definition at line 201 of file OgreTechnique.h.
typedef vector<Pass*>::type Ogre::Technique::Passes [protected] |
Definition at line 64 of file OgreTechnique.h.
Definition at line 198 of file OgreTechnique.h.
enum Ogre::Technique::IlluminationPassesState [protected] |
Definition at line 57 of file OgreTechnique.h.
Directive used to manually control technique support based on the inclusion or exclusion of some factor.
INCLUDE |
Inclusive - only support if present. |
EXCLUDE |
Exclusive - do not support if present. |
Definition at line 114 of file OgreTechnique.h.
Ogre::Technique::Technique | ( | Material * | parent | ) |
Constructor.
Ogre::Technique::~Technique | ( | ) |
String Ogre::Technique::_compile | ( | bool | autoManageTextureUnits | ) |
Internal compilation method; see Material::compile.
void Ogre::Technique::_compileIlluminationPasses | ( | void | ) |
Internal method for splitting the passes into illumination passes.
unsigned short Ogre::Technique::_getSchemeIndex | ( | void | ) | const |
Internal method for getting the scheme index.
void Ogre::Technique::_load | ( | void | ) |
Internal load method, derived from call to Material::load.
void Ogre::Technique::_notifyNeedsRecompile | ( | void | ) |
Tells the technique that it needs recompilation.
void Ogre::Technique::_prepare | ( | void | ) |
Internal prepare method, derived from call to Material::prepare.
void Ogre::Technique::_unload | ( | void | ) |
Internal unload method, derived from call to Material::unload.
void Ogre::Technique::_unprepare | ( | void | ) |
Internal unprepare method, derived from call to Material::unprepare.
void Ogre::Technique::addGPUDeviceNameRule | ( | const GPUDeviceNameRule & | rule | ) |
Add a rule which manually influences the support for this technique based on a pattern that matches a GPU device name (e.g.
'*8800*').
void Ogre::Technique::addGPUDeviceNameRule | ( | const String & | devicePattern, | |
IncludeOrExclude | includeOrExclude, | |||
bool | caseSensitive = false | |||
) |
Add a rule which manually influences the support for this technique based on a pattern that matches a GPU device name (e.g.
'*8800*').
devicePattern | The GPU vendor | |
includeOrExclude | Whether this is an inclusive or exclusive rule | |
caseSensitive | Whether the match is case sensitive or not |
void Ogre::Technique::addGPUVendorRule | ( | const GPUVendorRule & | rule | ) |
Add a rule which manually influences the support for this technique based on a GPU vendor.
void Ogre::Technique::addGPUVendorRule | ( | GPUVendor | vendor, | |
IncludeOrExclude | includeOrExclude | |||
) |
Add a rule which manually influences the support for this technique based on a GPU vendor.
vendor | The GPU vendor | |
includeOrExclude | Whether this is an inclusive or exclusive rule |
bool Ogre::Technique::applyTextureAliases | ( | const AliasTextureNamePairList & | aliasList, | |
const bool | apply = true | |||
) | const |
Applies texture names to Texture Unit State with matching texture name aliases.
All passes, and Texture Unit States within the technique 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. |
bool Ogre::Technique::checkGPURules | ( | StringUtil::StrStreamType & | errors | ) |
Internal method for checking GPU vendor / device rules.
bool Ogre::Technique::checkHardwareSupport | ( | bool | autoManageTextureUnits, | |
StringUtil::StrStreamType & | compileErrors | |||
) |
Internal method for checking hardware support.
bool Ogre::Technique::checkManuallyOrganisedIlluminationPasses | ( | ) | [protected] |
Internal method - check for manually assigned illumination passes.
void Ogre::Technique::clearIlluminationPasses | ( | void | ) | [protected] |
Internal method for clearing illumination pass list.
Pass* Ogre::Technique::createPass | ( | void | ) |
Creates a new Pass for this Technique.
GPUDeviceNameRuleIterator Ogre::Technique::getGPUDeviceNameRuleIterator | ( | ) | const |
Get an iterator over the currently registered device name rules.
GPUVendorRuleIterator Ogre::Technique::getGPUVendorRuleIterator | ( | ) | const |
Get an iterator over the currently registered vendor rules.
const IlluminationPassIterator Ogre::Technique::getIlluminationPassIterator | ( | void | ) |
Gets an iterator over the illumination-stage categorised passes.
unsigned short Ogre::Technique::getLodIndex | ( | void | ) | const |
Gets the level-of-detail index assigned to this Technique.
Definition at line 557 of file OgreTechnique.h.
const String& Ogre::Technique::getName | ( | void | ) | const |
Gets the name of the technique.
Definition at line 601 of file OgreTechnique.h.
unsigned short Ogre::Technique::getNumPasses | ( | void | ) | const |
Retrieves the number of passes.
Material* Ogre::Technique::getParent | ( | void | ) | const |
Gets the parent Material.
Definition at line 205 of file OgreTechnique.h.
Retrieves the Pass matching name.
Returns 0 if name match is not found.
const PassIterator Ogre::Technique::getPassIterator | ( | void | ) |
Gets an iterator over the passes in this Technique.
const String& Ogre::Technique::getResourceGroup | ( | void | ) | const |
Gets the resource group of the ultimate parent Material.
const String& Ogre::Technique::getSchemeName | ( | void | ) | const |
Returns the scheme to which this technique is assigned.
Ogre::MaterialPtr Ogre::Technique::getShadowCasterMaterial | ( | ) | const |
return this material specific shadow casting specific material
Ogre::MaterialPtr Ogre::Technique::getShadowReceiverMaterial | ( | ) | const |
return this material specific shadow receiving specific material
const UserObjectBindings& Ogre::Technique::getUserObjectBindings | ( | ) | const |
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.
Definition at line 706 of file OgreTechnique.h.
UserObjectBindings& Ogre::Technique::getUserObjectBindings | ( | ) |
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.
Definition at line 700 of file OgreTechnique.h.
bool Ogre::Technique::hasColourWriteDisabled | ( | void | ) | const |
Exists colour writing disabled pass on this technique?
bool Ogre::Technique::isDepthCheckEnabled | ( | void | ) | const |
Is depth checking going to occur on this technique?
bool Ogre::Technique::isDepthWriteEnabled | ( | void | ) | const |
Is depth writing going to occur on this technique?
bool Ogre::Technique::isLoaded | ( | void | ) | const |
bool Ogre::Technique::isSupported | ( | void | ) | const |
Indicates if this technique is supported by the current graphics card.
bool Ogre::Technique::isTransparent | ( | void | ) | const |
Returns true if this Technique involves transparency.
bool Ogre::Technique::isTransparentSortingEnabled | ( | void | ) | const |
Returns true if this Technique has transparent sorting enabled.
bool Ogre::Technique::isTransparentSortingForced | ( | void | ) | const |
Returns true if this Technique has transparent sorting forced.
bool Ogre::Technique::movePass | ( | const unsigned short | sourceIndex, | |
const unsigned short | destinationIndex | |||
) |
Move a pass from source index to destination index.
If successful then returns true.
void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr, | |
const char * | , | |||
int | , | |||
const char * | ||||
) | [inherited] |
Definition at line 107 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr, | |
void * | ||||
) | [inherited] |
Definition at line 101 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr | ) | [inherited] |
Definition at line 95 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete[] | ( | void * | ptr, | |
const char * | , | |||
int | , | |||
const char * | ||||
) | [inherited] |
Definition at line 118 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete[] | ( | void * | ptr | ) | [inherited] |
Definition at line 112 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz, | |
void * | ptr | |||
) | [inherited] |
placement operator new
Definition at line 78 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz | ) | [inherited] |
Definition at line 72 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz, | |
const char * | file, | |||
int | line, | |||
const char * | func | |||
) | [inherited] |
operator new, with debug line info
Definition at line 67 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new[] | ( | size_t | sz | ) | [inherited] |
Definition at line 90 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new[] | ( | size_t | sz, | |
const char * | file, | |||
int | line, | |||
const char * | func | |||
) | [inherited] |
array operator new, with debug line info
Definition at line 85 of file OgreMemoryAllocatedObject.h.
Overloaded operator to copy on Technique to another.
void Ogre::Technique::removeAllPasses | ( | void | ) |
Removes all Passes from this Technique.
void Ogre::Technique::removeGPUDeviceNameRule | ( | const String & | devicePattern | ) |
Removes a matching device name rule.
void Ogre::Technique::removeGPUVendorRule | ( | GPUVendor | vendor | ) |
Removes a matching vendor rule.
void Ogre::Technique::removePass | ( | unsigned short | index | ) |
Removes the Pass with the given index.
void Ogre::Technique::setAmbient | ( | const ColourValue & | ambient | ) |
Sets the ambient colour reflectance properties for every Pass in every Technique.
Sets the ambient colour reflectance properties for every Pass in every Technique.
void Ogre::Technique::setColourWriteEnabled | ( | bool | enabled | ) |
Sets whether or not colour buffer writing is enabled for each Pass.
void Ogre::Technique::setCullingMode | ( | CullingMode | mode | ) |
Sets the culling mode for each pass based on the 'vertex winding'.
void Ogre::Technique::setDepthBias | ( | float | constantBias, | |
float | slopeScaleBias | |||
) |
Sets the depth bias to be used for each Pass.
void Ogre::Technique::setDepthCheckEnabled | ( | bool | enabled | ) |
Sets whether or not each Pass renders with depth-buffer checking on or not.
void Ogre::Technique::setDepthFunction | ( | CompareFunction | func | ) |
Sets the function used to compare depth values when depth checking is on.
void Ogre::Technique::setDepthWriteEnabled | ( | bool | enabled | ) |
Sets whether or not each Pass renders with depth-buffer writing on or not.
void Ogre::Technique::setDiffuse | ( | const ColourValue & | diffuse | ) |
Sets the diffuse colour reflectance properties of every Pass in every Technique.
Sets the diffuse colour reflectance properties of every Pass in every Technique.
void Ogre::Technique::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 each pass.
void Ogre::Technique::setLightingEnabled | ( | bool | enabled | ) |
Sets whether or not dynamic lighting is enabled for every Pass.
void Ogre::Technique::setLodIndex | ( | unsigned short | index | ) |
Assigns a level-of-detail (LOD) index to this Technique.
void Ogre::Technique::setManualCullingMode | ( | ManualCullingMode | mode | ) |
Sets the manual culling mode, performed by CPU rather than hardware.
void Ogre::Technique::setName | ( | const String & | name | ) |
Set the name of the technique.
void Ogre::Technique::setPointSize | ( | Real | ps | ) |
Sets the point size properties for every Pass in this Technique.
void Ogre::Technique::setSceneBlending | ( | const SceneBlendFactor | sourceFactor, | |
const SceneBlendFactor | destFactor | |||
) |
Allows very fine control of blending every Pass with the existing contents of the scene.
void Ogre::Technique::setSceneBlending | ( | const SceneBlendType | sbt | ) |
Sets the kind of blending every pass has with the existing contents of the scene.
void Ogre::Technique::setSchemeName | ( | const String & | schemeName | ) |
Set the 'scheme name' for this technique.
void Ogre::Technique::setSelfIllumination | ( | const ColourValue & | selfIllum | ) |
Sets the amount of self-illumination of every Pass in every Technique.
Sets the amount of self-illumination of every Pass in every Technique.
void Ogre::Technique::setSeparateSceneBlending | ( | const SceneBlendFactor | sourceFactor, | |
const SceneBlendFactor | destFactor, | |||
const SceneBlendFactor | sourceFactorAlpha, | |||
const SceneBlendFactor | destFactorAlpha | |||
) |
Allows very fine control of blending every Pass with the existing contents of the scene, using individual factors both color and alpha channels.
void Ogre::Technique::setSeparateSceneBlending | ( | const SceneBlendType | sbt, | |
const SceneBlendType | sbta | |||
) |
Sets the kind of blending every pass has with the existing contents of the scene, using individual factors both color and alpha channels.
void Ogre::Technique::setShadingMode | ( | ShadeOptions | mode | ) |
Sets the type of light shading required.
void Ogre::Technique::setShadowCasterMaterial | ( | const Ogre::String & | name | ) |
set this material specific shadow casting specific material
void Ogre::Technique::setShadowCasterMaterial | ( | Ogre::MaterialPtr | val | ) |
set this material specific shadow casting specific material
void Ogre::Technique::setShadowReceiverMaterial | ( | const Ogre::String & | name | ) |
set this material specific shadow receiving specific material
void Ogre::Technique::setShadowReceiverMaterial | ( | Ogre::MaterialPtr | val | ) |
set this material specific shadow receiving specific material
void Ogre::Technique::setShininess | ( | Real | val | ) |
Sets the shininess properties of every Pass in every Technique.
void Ogre::Technique::setSpecular | ( | const ColourValue & | specular | ) |
Sets the specular colour reflectance properties of every Pass in every Technique.
Sets the specular colour reflectance properties of every Pass in every Technique.
void Ogre::Technique::setTextureAnisotropy | ( | unsigned int | maxAniso | ) |
Sets the anisotropy level to be used for all textures.
void Ogre::Technique::setTextureFiltering | ( | TextureFilterOptions | filterType | ) |
Set texture filtering for every texture unit in every Pass.
Definition at line 146 of file OgreTechnique.h.
GPUVendorRuleList Ogre::Technique::mGPUVendorRules [protected] |
Definition at line 145 of file OgreTechnique.h.
List of derived passes, categorised into IlluminationStage (ordered).
Definition at line 68 of file OgreTechnique.h.
Definition at line 71 of file OgreTechnique.h.
bool Ogre::Technique::mIsSupported [protected] |
Definition at line 70 of file OgreTechnique.h.
unsigned short Ogre::Technique::mLodIndex [protected] |
LOD level.
Definition at line 73 of file OgreTechnique.h.
String Ogre::Technique::mName [protected] |
Definition at line 78 of file OgreTechnique.h.
Material* Ogre::Technique::mParent [protected] |
Definition at line 69 of file OgreTechnique.h.
Passes Ogre::Technique::mPasses [protected] |
List of primary passes.
Definition at line 66 of file OgreTechnique.h.
unsigned short Ogre::Technique::mSchemeIndex [protected] |
Scheme index, derived from scheme name but the names are held on MaterialManager, for speed an index is used here.
Definition at line 77 of file OgreTechnique.h.
MaterialPtr Ogre::Technique::mShadowCasterMaterial [protected] |
When casting shadow, if not using default Ogre shadow casting material, or nor using fixed function casting, mShadowCasterMaterial let you customize per material shadow caster behavior.
Definition at line 90 of file OgreTechnique.h.
String Ogre::Technique::mShadowCasterMaterialName [protected] |
When casting shadow, if not using default Ogre shadow casting material, or nor using fixed function casting, mShadowCasterMaterial let you customize per material shadow caster behavior.There only material name is stored so that it can be loaded once all file parsed in a resource group.
Definition at line 95 of file OgreTechnique.h.
MaterialPtr Ogre::Technique::mShadowReceiverMaterial [protected] |
When receiving shadow, if not using default Ogre shadow receiving material, or nor using fixed function texture projection receiving, mShadowReceiverMaterial let you customize per material shadow caster behavior.
Definition at line 100 of file OgreTechnique.h.
String Ogre::Technique::mShadowReceiverMaterialName [protected] |
When receiving shadow, if not using default Ogre shadow receiving material, or nor using fixed function texture projection receiving, mShadowReceiverMaterial let you customize per material shadow caster behavior.
There only material name is stored so that it can be loaded once all file parsed in a resource group.
Definition at line 105 of file OgreTechnique.h.
Definition at line 108 of file OgreTechnique.h.
Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Fri May 25 23:41:03 2012