OGRE 2.1
Object-Oriented Graphics Rendering Engine
|
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 | |
typedef ConstVectorIterator< GPUDeviceNameRuleList > | GPUDeviceNameRuleIterator |
typedef vector< GPUDeviceNameRule >::type | GPUDeviceNameRuleList |
typedef ConstVectorIterator< GPUVendorRuleList > | GPUVendorRuleIterator |
typedef vector< GPUVendorRule >::type | GPUVendorRuleList |
enum | IncludeOrExclude { INCLUDE = 0 , EXCLUDE = 1 } |
Directive used to manually control technique support based on the inclusion or exclusion of some factor. More... | |
typedef VectorIterator< Passes > | PassIterator |
Public Member Functions | |
Technique (Material *parent) | |
Constructor. | |
Technique (Material *parent, const Technique &oth) | |
Copy constructor. | |
~Technique () | |
String | _compile (bool autoManageTextureUnits) |
Internal compilation method; see Material::compile. | |
unsigned short | _getSchemeIndex (void) const |
Internal method for getting the scheme index. | |
void | _load (void) |
Internal load method, derived from call to Material::load. | |
void | _notifyNeedsRecompile (void) |
Tells the technique that it needs recompilation. | |
void | _prepare (void) |
Internal prepare method, derived from call to Material::prepare. | |
void | _unload (void) |
Internal unload method, derived from call to Material::unload. | |
void | _unprepare (void) |
Internal unprepare method, derived from call to Material::unprepare. | |
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 | 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 | addGPUVendorRule (const GPUVendorRule &rule) |
Add a rule which manually influences the support for this technique based on a GPU vendor. | |
void | addGPUVendorRule (GPUVendor vendor, IncludeOrExclude includeOrExclude) |
Add a rule which manually influences the support for this technique based on a GPU vendor. | |
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 |
bool | checkGPURules (StringStream &errors) |
Internal method for checking GPU vendor / device rules. | |
bool | checkHardwareSupport (bool autoManageTextureUnits, StringStream &compileErrors) |
Internal method for checking hardware support. | |
Pass * | createPass (void) |
Creates a new Pass for this Technique. | |
GPUDeviceNameRuleIterator | getGPUDeviceNameRuleIterator () const |
Get an iterator over the currently registered device name rules. | |
GPUVendorRuleIterator | getGPUVendorRuleIterator () const |
Get an iterator over the currently registered vendor rules. | |
unsigned short | getLodIndex (void) const |
Gets the level-of-detail index assigned to this Technique. | |
const String & | getName (void) const |
Gets the name of the technique. | |
unsigned short | getNumPasses (void) const |
Retrieves the number of passes. | |
Material * | getParent (void) const |
Gets the parent Material. | |
Pass * | getPass (const String &name) |
Retrieves the Pass matching name. | |
Pass * | getPass (unsigned short index) |
Retrieves the Pass with the given index. | |
const PassIterator | getPassIterator (void) |
Gets an iterator over the passes in this Technique. | |
const String & | getResourceGroup (void) const |
Gets the resource group of the ultimate parent Material. | |
const String & | getSchemeName (void) const |
Returns the scheme to which this technique is assigned. | |
Ogre::MaterialPtr | getShadowCasterMaterial () const |
return this material specific shadow casting specific material | |
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. | |
bool | hasColourWriteDisabled (void) const |
Exists colour writing disabled pass on this technique? | |
bool | isDepthCheckEnabled (void) const |
Is depth checking going to occur on this technique? | |
bool | isDepthWriteEnabled (void) const |
Is depth writing going to occur on this technique? | |
bool | isLoaded (void) const |
Is this loaded? | |
bool | isSupported (void) const |
Indicates if this technique is supported by the current graphics card. | |
bool | isTransparent (void) const |
Returns true if this Technique involves transparency. | |
bool | movePass (const unsigned short sourceIndex, const unsigned short destinationIndex) |
Move a pass from source index to destination index. | |
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 | |
Technique & | operator= (const Technique &rhs) |
Overloaded operator to copy on Technique to another. | |
void | removeAllPasses (void) |
Removes all Passes from this Technique. | |
void | removeGPUDeviceNameRule (const String &devicePattern) |
Removes a matching device name rule. | |
void | removeGPUVendorRule (GPUVendor vendor) |
Removes a matching vendor rule. | |
void | removePass (unsigned short index) |
Removes the Pass with the given index. | |
void | setAmbient (const ColourValue &ambient) |
Sets the ambient colour reflectance properties for every Pass in every Technique. | |
void | setAmbient (Real red, Real green, Real blue) |
Sets the ambient colour reflectance properties for every Pass in every Technique. | |
void | setBlendblock (const HlmsBlendblock &blendblock) |
Sets the blendblock every pass has with the existing contents of the scene. | |
void | setDiffuse (const ColourValue &diffuse) |
Sets the diffuse colour reflectance properties of 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 | 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 | setLodIndex (unsigned short index) |
Assigns a level-of-detail (LOD) index to this Technique. | |
void | setMacroblock (const HlmsMacroblock ¯oblock) |
Sets the macroblock every pass has with the existing contents of the scene. | |
void | setName (const String &name) |
Set the name of the technique. | |
void | setPointSize (Real ps) |
Sets the point size properties for every Pass in this Technique. | |
void | setSamplerblock (const HlmsSamplerblock &samplerblock) |
Set samplerblock for every texture unit in every Pass. | |
void | setSchemeName (const String &schemeName) |
Set the 'scheme name' for this technique. | |
void | setSelfIllumination (const ColourValue &selfIllum) |
Sets the amount of self-illumination 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 | setShadingMode (ShadeOptions mode) |
Sets the type of light shading required. | |
void | setShadowCasterMaterial (const Ogre::String &name) |
set this material specific shadow casting specific material | |
void | setShadowCasterMaterial (Ogre::MaterialPtr val) |
set this material specific shadow casting specific material | |
void | setShininess (Real val) |
Sets the shininess 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 | setSpecular (Real red, Real green, Real blue, Real alpha) |
Sets the specular colour reflectance properties of every Pass in every Technique. | |
Class representing an approach to rendering this particular Material.
Ogre::Technique::Technique | ( | Material * | parent | ) |
Constructor.
Ogre::Technique::~Technique | ( | ) |
Internal compilation method; see Material::compile.
Internal method for getting the scheme index.
Internal load method, derived from call to Material::load.
Tells the technique that it needs recompilation.
Internal prepare method, derived from call to Material::prepare.
Internal unload method, derived from call to Material::unload.
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 | ( | StringStream & | errors | ) |
Internal method for checking GPU vendor / device rules.
bool Ogre::Technique::checkHardwareSupport | ( | bool | autoManageTextureUnits, |
StringStream & | compileErrors | ||
) |
Internal method for checking hardware support.
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.
Gets the level-of-detail index assigned to this Technique.
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.
Gets the resource group of the ultimate parent Material.
Returns the scheme to which this technique is assigned.
Ogre::MaterialPtr Ogre::Technique::getShadowCasterMaterial | ( | ) | const |
return this material specific shadow casting specific material
|
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.
Exists colour writing disabled pass on this technique?
Is depth checking going to occur on this technique?
Is depth writing going to occur on this technique?
Indicates if this technique is supported by the current graphics card.
Returns true if this Technique involves transparency.
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.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
operator new, with debug line info
placement operator new
|
inlineinherited |
|
inlineinherited |
array operator new, with debug line info
Overloaded operator to copy on Technique to another.
Removes a matching device name rule.
Removes a matching vendor rule.
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::setBlendblock | ( | const HlmsBlendblock & | blendblock | ) |
Sets the blendblock every pass has with the existing contents of the scene.
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.
Assigns a level-of-detail (LOD) index to this Technique.
void Ogre::Technique::setMacroblock | ( | const HlmsMacroblock & | macroblock | ) |
Sets the macroblock every pass has with the existing contents of the scene.
Set the name of the technique.
Sets the point size properties for every Pass in this Technique.
void Ogre::Technique::setSamplerblock | ( | const HlmsSamplerblock & | samplerblock | ) |
Set samplerblock for every texture unit in every Pass.
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::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
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.