#include <OgreTextureUnitState.h>
Collaboration diagram for Ogre::TextureUnitState:
Public Types | |
enum | TextureEffectType { ET_ENVIRONMENT_MAP, ET_SCROLL, ET_ROTATE, ET_TRANSFORM } |
Definition of the broad types of texture effect you can apply to a texture unit. More... | |
enum | EnvMapType { ENV_PLANAR, ENV_CURVED, ENV_REFLECTION, ENV_NORMAL } |
Enumeration to specify type of envmap. More... | |
enum | TextureTransformType { TT_TRANSLATE_U, TT_TRANSLATE_V, TT_SCALE_U, TT_SCALE_V, TT_ROTATE } |
Useful enumeration when dealing with procedural transforms. More... | |
enum | TextureAddressingMode { TAM_WRAP, TAM_MIRROR, TAM_CLAMP } |
Texture addressing modes - default is TAM_WRAP. More... | |
enum | TextureCubeFace { CUBE_FRONT = 0, CUBE_BACK = 1, CUBE_LEFT = 2, CUBE_RIGHT = 3, CUBE_UP = 4, CUBE_DOWN = 5 } |
Enum identifying the frame indexes for faces of a cube map (not the composite 3D type. More... | |
Public Methods | |
TextureUnitState (Pass *parent) | |
Default constructor. | |
TextureUnitState (Pass *parent, const TextureUnitState &oth) | |
TextureUnitState & | operator= (const TextureUnitState &oth) |
~TextureUnitState () | |
Default destructor. | |
TextureUnitState (Pass *parent, const String &texName, unsigned int texCoordSet=0) | |
Name-based constructor. | |
const String & | getTextureName (void) const |
Get the name of current texture image for this layer. | |
void | setTextureName (const String &name, TextureType ttype=TEX_TYPE_2D) |
Sets this texture layer to use a single texture, given the name of the texture to use on this layer. | |
void | setCubicTextureName (const String &name, bool forUVW=false) |
Sets this texture layer to use a combination of 6 texture maps, each one relating to a face of a cube. | |
void | setCubicTextureName (const String *const names, bool forUVW=false) |
Sets this texture layer to use a combination of 6 texture maps, each one relating to a face of a cube. | |
void | setAnimatedTextureName (const String &name, unsigned int numFrames, Real duration=0) |
Sets the names of the texture images for an animated texture. | |
void | setAnimatedTextureName (const String *const names, unsigned int numFrames, Real duration=0) |
Sets the names of the texture images for an animated texture. | |
std::pair< uint, uint > | getTextureDimensions (unsigned int frame=0) const |
Returns the width and height of the texture in the given frame. | |
void | setCurrentFrame (unsigned int frameNumber) |
Changes the active frame in an animated or multi-image texture. | |
unsigned int | getCurrentFrame (void) const |
Gets the active frame in an animated or multi-image texture layer. | |
const String & | getFrameTextureName (unsigned int frameNumber) const |
Gets the name of the texture associated with a frame. | |
unsigned int | getNumFrames (void) const |
Gets the number of frames for a texture. | |
bool | isCubic (void) const |
Returns true if this texture unit is either a series of 6 2D textures, each in it's own frame, or is a full 3D cube map. | |
bool | is3D (void) const |
Returns true if this texture layer uses a composite 3D cubic texture. | |
TextureType | getTextureType (void) const |
Returns the type of this texture. | |
unsigned int | getTextureCoordSet (void) const |
Gets the index of the set of texture co-ords this layer uses. | |
void | setTextureCoordSet (unsigned int set) |
Sets the index of the set of texture co-ords this layer uses. | |
void | setTextureTransform (const Matrix4 &xform) |
Sets a matrix used to transform any texture coordinates on this layer. | |
const Matrix4 & | getTextureTransform (void) |
Gets the current texture transformation matrix. | |
void | setTextureScroll (Real u, Real v) |
Sets the translation offset of the texture, ie scrolls the texture. | |
void | setTextureUScroll (Real value) |
As setTextureScroll, but sets only U value. | |
Real | getTextureUScroll (void) const |
void | setTextureVScroll (Real value) |
As setTextureScroll, but sets only V value. | |
Real | getTextureVScroll (void) const |
void | setTextureUScale (Real value) |
As setTextureScale, but sets only U value. | |
Real | getTextureUScale (void) const |
void | setTextureVScale (Real value) |
As setTextureScale, but sets only V value. | |
Real | getTextureVScale (void) const |
void | setTextureScale (Real uScale, Real vScale) |
Sets the scaling factor applied to texture coordinates. | |
void | setTextureRotate (Real degrees) |
Sets the anticlockwise rotation factor applied to texture coordinates. | |
Real | getTextureRotate (void) const |
TextureAddressingMode | getTextureAddressingMode (void) const |
Gets the texture addressing mode, i.e. | |
void | setTextureAddressingMode (TextureAddressingMode tam) |
Sets the texture addressing mode, i.e. | |
void | setColourOperationEx (LayerBlendOperationEx op, LayerBlendSource source1=LBS_TEXTURE, LayerBlendSource source2=LBS_CURRENT, const ColourValue &arg1=ColourValue::White, const ColourValue &arg2=ColourValue::White, Real manualBlend=0.0) |
Setting advanced blending options. | |
void | setColourOperation (const LayerBlendOperation op) |
Determines how this texture layer is combined with the one below it (or the diffuse colour of the geometry if this is layer 0). | |
void | setColourOpMultipassFallback (const SceneBlendFactor sourceFactor, const SceneBlendFactor destFactor) |
Sets the multipass fallback operation for this layer, if you used TextureUnitState::setColourOperationEx and not enough multitexturing hardware is available. | |
LayerBlendModeEx | getColourBlendMode (void) const |
Get multitexturing colour blending mode. | |
LayerBlendModeEx | getAlphaBlendMode (void) const |
Get multitexturing alpha blending mode. | |
SceneBlendFactor | getColourBlendFallbackSrc (void) const |
Get the multipass fallback for colour blending operation source factor. | |
SceneBlendFactor | getColourBlendFallbackDest (void) const |
Get the multipass fallback for colour blending operation destination factor. | |
void | setAlphaOperation (LayerBlendOperationEx op, LayerBlendSource source1=LBS_TEXTURE, LayerBlendSource source2=LBS_CURRENT, Real arg1=1.0, Real arg2=1.0, Real manualBlend=0.0) |
Sets the alpha operation to be applied to this texture. | |
void | addEffect (TextureEffect &effect) |
Generic method for setting up texture effects. | |
void | setEnvironmentMap (bool enable, EnvMapType envMapType=ENV_CURVED) |
Turns on/off texture coordinate effect that makes this layer an environment map. | |
void | setScrollAnimation (Real uSpeed, Real vSpeed) |
Sets up an animated scroll for the texture layer. | |
void | setRotateAnimation (Real speed) |
Sets up an animated texture rotation for this layer. | |
void | setTransformAnimation (const TextureTransformType ttype, const WaveformType waveType, Real base=0, Real frequency=1, Real phase=0, Real amplitude=1) |
Sets up a general time-relative texture modification effect. | |
void | setAlphaRejectSettings (const CompareFunction func, unsigned char value) |
Sets the way the layer will have use alpha to totally reject pixels from the pipeline. | |
CompareFunction | getAlphaRejectFunction (void) const |
Gets the alpha reject function. | |
unsigned char | getAlphaRejectValue (void) const |
Gets the alpha reject value. | |
void | removeAllEffects (void) |
Removes all effects applied to this texture layer. | |
void | removeEffect (const TextureEffectType type) |
Removes a single effect applied to this texture layer. | |
bool | isBlank (void) const |
Determines if this texture layer is currently blank. | |
void | setBlank (void) |
Sets this texture layer to be blank. | |
std::multimap< TextureEffectType, TextureEffect > | getEffects (void) const |
Real | getAnimationDuration (void) const |
void | setTextureFiltering (TextureFilterOptions filterType) |
Set the texture filtering for this unit, using the simplified interface. | |
void | setTextureFiltering (FilterType ftype, FilterOptions opts) |
Set a single filtering option on this texture unit. | |
void | setTextureFiltering (FilterOptions minFilter, FilterOptions magFilter, FilterOptions mipFilter) |
Set a the detailed filtering options on this texture unit. | |
FilterOptions | getTextureFiltering (FilterType ftpye) const |
void | setTextureAnisotropy (unsigned int maxAniso) |
Sets the anisotropy level to be used for this texture level. | |
unsigned int | getTextureAnisotropy () const |
Pass * | getParent (void) |
Gets the parent Pass object. | |
void | _load (void) |
Internal method for loading this object as part of Material::load. | |
void | _unload (void) |
Internal method for unloading this object as part of Material::unload. | |
bool | hasViewRelativeTextureCoordinateGeneration (void) |
Returns whether this unit has texture coordinate generation that depends on the camera. | |
bool | isLoaded (void) |
void | _notifyNeedsRecompile (void) |
Tells the class that it needs recompilation. | |
Protected Types | |
typedef std::multimap< TextureEffectType, TextureEffect > | EffectMap |
Protected Methods | |
void | recalcTextureMatrix (void) |
Internal method for calculating texture matrix. | |
void | createAnimController (void) |
Internal method for creating animation controller. | |
void | createEffectController (TextureEffect &effect) |
Internal method for creating texture effect controller. | |
Protected Attributes | |
Pass * | mParent |
unsigned int | mNumFrames |
Number of frames of animation, or frames making up cubic. | |
unsigned int | mCurrentFrame |
The xurrent animation frame. | |
Real | mAnimDuration |
Duration of animation in seconds. | |
Controller< Real > * | mAnimController |
bool | mCubic |
TextureType | mTextureType |
unsigned int | mTextureCoordSetIndex |
TextureAddressingMode | mAddressMode |
LayerBlendModeEx | colourBlendMode |
SceneBlendFactor | colourBlendFallbackSrc |
SceneBlendFactor | colourBlendFallbackDest |
LayerBlendModeEx | alphaBlendMode |
bool | mIsBlank |
bool | mRecalcTexMatrix |
Real | mUMod |
Real | mVMod |
Real | mUScale |
Real | mVScale |
Real | mRotate |
Matrix4 | mTexModMatrix |
CompareFunction | mAlphaRejectFunc |
unsigned char | mAlphaRejectVal |
Real | mUScrollAnim |
Real | mVScrollAnim |
Real | mRotateAnim |
FilterOptions | mMinFilter |
Texture filtering - minification. | |
FilterOptions | mMagFilter |
Texture filtering - magnification. | |
FilterOptions | mMipFilter |
Texture filtering - mipmapping. | |
unsigned int | mMaxAniso |
Texture anisotropy. | |
bool | mIsDefaultAniso |
bool | mIsDefaultFiltering |
String | mFrames [MAX_FRAMES] |
EffectMap | mEffects |
Friends | |
class | RenderSystem |
When I use the term 'fixed-function pipeline' I mean traditional rendering where you do not use vertex or fragment programs (shaders). Programmable pipeline means that for this pass you are using vertex or fragment programs.
Definition at line 52 of file OgreTextureUnitState.h.
|
Definition at line 912 of file OgreTextureUnitState.h. |
|
Enumeration to specify type of envmap.
Definition at line 79 of file OgreTextureUnitState.h. |
|
Texture addressing modes - default is TAM_WRAP.
Definition at line 110 of file OgreTextureUnitState.h. |
|
Enum identifying the frame indexes for faces of a cube map (not the composite 3D type.
Definition at line 122 of file OgreTextureUnitState.h. |
|
Definition of the broad types of texture effect you can apply to a texture unit.
Definition at line 61 of file OgreTextureUnitState.h. |
|
Useful enumeration when dealing with procedural transforms.
Definition at line 96 of file OgreTextureUnitState.h. |
|
|
Definition at line 77 of file OgreTextureUnitState.cpp. References mParent. |
|
Default destructor.
Definition at line 123 of file OgreTextureUnitState.cpp. References mAnimController, and mEffects. |
|
Name-based constructor.
Definition at line 84 of file OgreTextureUnitState.cpp. References alphaBlendMode, Ogre::LayerBlendModeEx::blendType, Ogre::CMPF_ALWAYS_PASS, colourBlendMode, Ogre::FO_LINEAR, Ogre::FO_POINT, Ogre::LBO_MODULATE, Ogre::LBS_CURRENT, Ogre::LBS_TEXTURE, Ogre::LBT_ALPHA, Ogre::LBT_COLOUR, Ogre::LBX_MODULATE, mAlphaRejectFunc, mAlphaRejectVal, mAnimController, mAnimDuration, mCubic, mIsBlank, mIsDefaultAniso, mIsDefaultFiltering, mMagFilter, mMaxAniso, mMinFilter, mMipFilter, mRecalcTexMatrix, mRotate, mTexModMatrix, mTextureCoordSetIndex, mTextureType, mUMod, mUScale, mVMod, mVScale, Ogre::LayerBlendModeEx::operation, setColourOperation(), setTextureAddressingMode(), setTextureCoordSet(), setTextureName(), Ogre::LayerBlendModeEx::source1, Ogre::LayerBlendModeEx::source2, TAM_WRAP, and Ogre::TEX_TYPE_2D. |
|
Internal method for loading this object as part of Material::load.
Definition at line 694 of file OgreTextureUnitState.cpp. References createAnimController(), createEffectController(), mAnimDuration, mEffects, mFrames, mIsBlank, mNumFrames, and mTextureType. Referenced by Ogre::BspLevel::loadQuake3Level(), setAnimatedTextureName(), and setTextureName(). |
|
Tells the class that it needs recompilation.
Definition at line 884 of file OgreTextureUnitState.cpp. References Ogre::Pass::_notifyNeedsRecompile(), and mParent. |
|
Internal method for unloading this object as part of Material::unload.
Definition at line 874 of file OgreTextureUnitState.cpp. |
|
Generic method for setting up texture effects.
Definition at line 425 of file OgreTextureUnitState.cpp. References Ogre::TextureUnitState::TextureEffect::controller, createEffectController(), ET_ENVIRONMENT_MAP, ET_ROTATE, ET_SCROLL, isLoaded(), mEffects, and Ogre::TextureUnitState::TextureEffect::type. Referenced by setEnvironmentMap(), setRotateAnimation(), setScrollAnimation(), and setTransformAnimation(). |
|
Internal method for creating animation controller.
Definition at line 728 of file OgreTextureUnitState.cpp. References mAnimController, and mAnimDuration. Referenced by _load(). |
|
|
Get multitexturing alpha blending mode.
Definition at line 479 of file OgreTextureUnitState.cpp. References alphaBlendMode. Referenced by Ogre::RenderSystem::_setTextureUnitSettings(), and Ogre::MaterialSerializer::writeTextureUnit(). |
|
Gets the alpha reject function. See setAlphaRejectSettings for more information. Definition at line 653 of file OgreTextureUnitState.cpp. References Ogre::CompareFunction, and mAlphaRejectFunc. Referenced by Ogre::RenderSystem::_setTextureUnitSettings(), and Ogre::MaterialSerializer::writeTextureUnit(). |
|
Gets the alpha reject value. See setAlphaRejectSettings for more information. Definition at line 658 of file OgreTextureUnitState.cpp. References mAlphaRejectVal. Referenced by Ogre::RenderSystem::_setTextureUnitSettings(), and Ogre::MaterialSerializer::writeTextureUnit(). |
|
Definition at line 784 of file OgreTextureUnitState.cpp. References mAnimDuration, and Ogre::Real. Referenced by Ogre::MaterialSerializer::writeTextureUnit(). |
|
Get the multipass fallback for colour blending operation destination factor.
Definition at line 469 of file OgreTextureUnitState.cpp. References colourBlendFallbackDest, and Ogre::SceneBlendFactor. Referenced by Ogre::MaterialSerializer::writeTextureUnit(). |
|
Get the multipass fallback for colour blending operation source factor.
Definition at line 464 of file OgreTextureUnitState.cpp. References colourBlendFallbackSrc, and Ogre::SceneBlendFactor. Referenced by Ogre::MaterialSerializer::writeTextureUnit(). |
|
Get multitexturing colour blending mode.
Definition at line 474 of file OgreTextureUnitState.cpp. References colourBlendMode. Referenced by Ogre::Technique::_compile(), Ogre::RenderSystem::_setTextureUnitSettings(), and Ogre::MaterialSerializer::writeTextureUnit(). |
|
Gets the active frame in an animated or multi-image texture layer.
Definition at line 337 of file OgreTextureUnitState.cpp. References mCurrentFrame. Referenced by Ogre::TextureFrameControllerValue::getValue(). |
|
Definition at line 790 of file OgreTextureUnitState.cpp. References mEffects. Referenced by Ogre::MaterialSerializer::writeTextureUnit(). |
|
Gets the name of the texture associated with a frame.
Definition at line 347 of file OgreTextureUnitState.cpp. References mFrames, and mNumFrames. Referenced by Ogre::MaterialSerializer::writeTextureUnit(). |
|
Gets the number of frames for a texture.
Definition at line 342 of file OgreTextureUnitState.cpp. References mNumFrames. Referenced by Ogre::TextureFrameControllerValue::getValue(), Ogre::TextureFrameControllerValue::setValue(), and Ogre::MaterialSerializer::writeTextureUnit(). |
|
Gets the parent Pass object.
Definition at line 838 of file OgreTextureUnitState.h. |
|
Gets the texture addressing mode, i.e. what happens at uv values above 1.0.
Definition at line 484 of file OgreTextureUnitState.cpp. References mAddressMode. Referenced by Ogre::RenderSystem::_setTextureUnitSettings(), and Ogre::MaterialSerializer::writeTextureUnit(). |
|
Definition at line 868 of file OgreTextureUnitState.cpp. References mIsDefaultAniso, and mMaxAniso. Referenced by Ogre::RenderSystem::_setTextureUnitSettings(), and Ogre::MaterialSerializer::writeTextureUnit(). |
|
Gets the index of the set of texture co-ords this layer uses.
Definition at line 353 of file OgreTextureUnitState.cpp. References mTextureCoordSetIndex. Referenced by Ogre::RenderSystem::_setTextureUnitSettings(), and Ogre::MaterialSerializer::writeTextureUnit(). |
|
Returns the width and height of the texture in the given frame.
Definition at line 319 of file OgreTextureUnitState.cpp. References Except, Ogre::Texture::getHeight(), Ogre::Texture::getWidth(), and mFrames. |
|
Definition at line 842 of file OgreTextureUnitState.cpp. References Ogre::FilterOptions, Ogre::FilterType, Ogre::FT_MAG, Ogre::FT_MIN, Ogre::FT_MIP, mIsDefaultFiltering, mMagFilter, mMinFilter, and mMipFilter. Referenced by Ogre::RenderSystem::_setTextureUnitSettings(), and Ogre::MaterialSerializer::writeTextureUnit(). |
|
Get the name of current texture image for this layer.
Definition at line 158 of file OgreTextureUnitState.cpp. References mCurrentFrame, and mFrames. Referenced by Ogre::RenderSystem::_setTextureUnitSettings(), and Ogre::MaterialSerializer::writeTextureUnit(). |
|
Definition at line 778 of file OgreTextureUnitState.cpp. References mRotate, and Ogre::Real. Referenced by Ogre::MaterialSerializer::writeTextureUnit(). |
|
Gets the current texture transformation matrix.
Definition at line 565 of file OgreTextureUnitState.cpp. References mTexModMatrix, and recalcTextureMatrix(). Referenced by Ogre::RenderSystem::_setTextureUnitSettings(), and Ogre::TexCoordModifierControllerValue::getValue(). |
|
Returns the type of this texture.
Definition at line 248 of file OgreTextureUnitState.cpp. References mTextureType, and Ogre::TextureType. Referenced by Ogre::MaterialSerializer::writeTextureUnit(). |
|
Definition at line 766 of file OgreTextureUnitState.cpp. References mUScale, and Ogre::Real. Referenced by Ogre::MaterialSerializer::writeTextureUnit(). |
|
Definition at line 754 of file OgreTextureUnitState.cpp. References mUMod, and Ogre::Real. Referenced by Ogre::MaterialSerializer::writeTextureUnit(). |
|
Definition at line 772 of file OgreTextureUnitState.cpp. References mVScale, and Ogre::Real. Referenced by Ogre::MaterialSerializer::writeTextureUnit(). |
|
Definition at line 760 of file OgreTextureUnitState.cpp. References mVMod, and Ogre::Real. Referenced by Ogre::MaterialSerializer::writeTextureUnit(). |
|
Returns whether this unit has texture coordinate generation that depends on the camera.
Definition at line 889 of file OgreTextureUnitState.cpp. References ENV_REFLECTION, ET_ENVIRONMENT_MAP, and mEffects. Referenced by Ogre::SceneManager::renderSingleObject(). |
|
Returns true if this texture layer uses a composite 3D cubic texture.
Definition at line 243 of file OgreTextureUnitState.cpp. References mTextureType, and Ogre::TEX_TYPE_CUBE_MAP. Referenced by Ogre::Technique::_compile(). |
|
Determines if this texture layer is currently blank.
Definition at line 458 of file OgreTextureUnitState.cpp. References mIsBlank. Referenced by Ogre::BspLevel::loadQuake3Level(). |
|
Returns true if this texture unit is either a series of 6 2D textures, each in it's own frame, or is a full 3D cube map. You can tell which by checking getTextureType.
Definition at line 238 of file OgreTextureUnitState.cpp. References mCubic. Referenced by Ogre::MaterialSerializer::writeTextureUnit(). |
|
Definition at line 879 of file OgreTextureUnitState.cpp. References Ogre::Pass::isLoaded(), and mParent. Referenced by addEffect(), setAnimatedTextureName(), and setTextureName(). |
|
Definition at line 143 of file OgreTextureUnitState.cpp. References mEffects, mFrames, mNumFrames, Ogre::uchar, and Ogre::ushort. |
|
Internal method for calculating texture matrix.
Definition at line 573 of file OgreTextureUnitState.cpp. References mRotate, mTexModMatrix, mUMod, mUScale, mVMod, mVScale, and Ogre::Real. Referenced by getTextureTransform(). |
|
Removes all effects applied to this texture layer.
Definition at line 452 of file OgreTextureUnitState.cpp. References mEffects. |
|
Removes a single effect applied to this texture layer.
Definition at line 510 of file OgreTextureUnitState.cpp. References mEffects. Referenced by setEnvironmentMap(). |
|
Sets the alpha operation to be applied to this texture.
Definition at line 410 of file OgreTextureUnitState.cpp. References Ogre::LayerBlendModeEx::alphaArg1, Ogre::LayerBlendModeEx::alphaArg2, alphaBlendMode, Ogre::LayerBlendModeEx::factor, Ogre::LayerBlendOperationEx, Ogre::LayerBlendSource, Ogre::LayerBlendModeEx::operation, Ogre::Real, Ogre::LayerBlendModeEx::source1, and Ogre::LayerBlendModeEx::source2. Referenced by Ogre::parseAlphaOpEx(). |
|
Sets the way the layer will have use alpha to totally reject pixels from the pipeline.
Definition at line 647 of file OgreTextureUnitState.cpp. References Ogre::CompareFunction, mAlphaRejectFunc, and mAlphaRejectVal. Referenced by Ogre::Quake3Shader::createAsMaterial(), and Ogre::parseAlphaRejection(). |
|
Sets the names of the texture images for an animated texture.
Definition at line 292 of file OgreTextureUnitState.cpp. References _load(), Ogre::Pass::_recalculateHash(), Except, isLoaded(), mAnimDuration, MAX_FRAMES, mCubic, mCurrentFrame, mFrames, mNumFrames, mParent, and Ogre::Real. |
|
Sets the names of the texture images for an animated texture.
Definition at line 254 of file OgreTextureUnitState.cpp. References _load(), Ogre::Pass::_recalculateHash(), Except, isLoaded(), mAnimDuration, MAX_FRAMES, mCubic, mCurrentFrame, mFrames, mNumFrames, mParent, and Ogre::Real. Referenced by Ogre::Quake3Shader::createAsMaterial(), and Ogre::parseAnimTexture(). |
|
Sets this texture layer to be blank.
Definition at line 534 of file OgreTextureUnitState.cpp. References mIsBlank. |
|
Determines how this texture layer is combined with the one below it (or the diffuse colour of the geometry if this is layer 0).
Definition at line 378 of file OgreTextureUnitState.cpp. References Ogre::LayerBlendOperation, Ogre::LBO_ADD, Ogre::LBO_ALPHA_BLEND, Ogre::LBO_MODULATE, Ogre::LBO_REPLACE, Ogre::LBS_CURRENT, Ogre::LBS_TEXTURE, Ogre::LBX_ADD, Ogre::LBX_BLEND_TEXTURE_ALPHA, Ogre::LBX_MODULATE, Ogre::LBX_SOURCE1, Ogre::SBF_DEST_COLOUR, Ogre::SBF_ONE, Ogre::SBF_ONE_MINUS_SOURCE_ALPHA, Ogre::SBF_SOURCE_ALPHA, Ogre::SBF_ZERO, setColourOperationEx(), and setColourOpMultipassFallback(). Referenced by Ogre::Quake3Shader::createAsMaterial(), Ogre::BspLevel::loadQuake3Level(), Ogre::parseColourOp(), and TextureUnitState(). |
|
Setting advanced blending options.
Definition at line 363 of file OgreTextureUnitState.cpp. References Ogre::LayerBlendModeEx::colourArg1, Ogre::LayerBlendModeEx::colourArg2, colourBlendMode, Ogre::LayerBlendModeEx::factor, Ogre::LayerBlendOperationEx, Ogre::LayerBlendSource, Ogre::LayerBlendModeEx::operation, Ogre::Real, Ogre::LayerBlendModeEx::source1, and Ogre::LayerBlendModeEx::source2. Referenced by Ogre::parseColourOpEx(), and setColourOperation(). |
|
Sets the multipass fallback operation for this layer, if you used TextureUnitState::setColourOperationEx and not enough multitexturing hardware is available.
Definition at line 404 of file OgreTextureUnitState.cpp. References colourBlendFallbackDest, colourBlendFallbackSrc, and Ogre::SceneBlendFactor. Referenced by Ogre::parseColourOpFallback(), and setColourOperation(). |
|
Sets this texture layer to use a combination of 6 texture maps, each one relating to a face of a cube.
for cubic environment maps, the 6 textures are combined into a single 'cubic' texture map which is then addressed using 3D texture coordinates. This is required because you don't know what face of the box you're going to need to address when you render an object, and typically you need to reflect more than one face on the one object, so all 6 textures are needed to be 'active' at once. Cubic environment maps are enabled by calling this method with the forUVW parameter set to true, and then calling setEnvironmentMap(true). Note that not all cards support cubic environment mapping. for skyboxes, the 6 textures are kept separate and used independently for each face of the skybox. This is done because not all cards support 3D cubic maps and skyboxes do not need to use 3D texture coordinates so it is simpler to render each face of the box with 2D coordinates, changing texture between faces. Skyboxes are created by calling SceneManager::setSkyBox.
Definition at line 223 of file OgreTextureUnitState.cpp. References Ogre::Pass::_notifyNeedsRecompile(), mCubic, mCurrentFrame, mFrames, mNumFrames, mParent, mTextureType, Ogre::TEX_TYPE_2D, and Ogre::TEX_TYPE_CUBE_MAP. |
|
Sets this texture layer to use a combination of 6 texture maps, each one relating to a face of a cube.
for cubic environment maps, the 6 textures are combined into a single 'cubic' texture map which is then addressed using 3D texture coordinates. This is required because you don't know what face of the box you're going to need to address when you render an object, and typically you need to reflect more than one face on the one object, so all 6 textures are needed to be 'active' at once. Cubic environment maps are enabled by calling this method with the forUVW parameter set to true, and then calling setEnvironmentMap(true). Note that not all cards support cubic environment mapping. for skyboxes, the 6 textures are kept separate and used independently for each face of the skybox. This is done because not all cards support 3D cubic maps and skyboxes do not need to use 3D texture coordinates so it is simpler to render each face of the box with 2D coordinates, changing texture between faces. Skyboxes are created by calling SceneManager::setSkyBox.
Definition at line 196 of file OgreTextureUnitState.cpp. Referenced by Ogre::parseCubicTexture(), and setTextureName(). |
|
Changes the active frame in an animated or multi-image texture.
Definition at line 328 of file OgreTextureUnitState.cpp. References Ogre::Pass::_recalculateHash(), mCurrentFrame, mNumFrames, and mParent. Referenced by Ogre::SceneManager::setSkyBox(), and Ogre::TextureFrameControllerValue::setValue(). |
|
Turns on/off texture coordinate effect that makes this layer an environment map.
Definition at line 494 of file OgreTextureUnitState.cpp. References addEffect(), ET_ENVIRONMENT_MAP, removeEffect(), Ogre::TextureUnitState::TextureEffect::subtype, and Ogre::TextureUnitState::TextureEffect::type. Referenced by Ogre::Quake3Shader::createAsMaterial(), and Ogre::parseEnvMap(). |
|
Sets up an animated texture rotation for this layer.
Definition at line 672 of file OgreTextureUnitState.cpp. References addEffect(), Ogre::TextureUnitState::TextureEffect::arg1, ET_ROTATE, Ogre::Real, and Ogre::TextureUnitState::TextureEffect::type. Referenced by Ogre::Quake3Shader::createAsMaterial(), and Ogre::parseRotateAnim(). |
|
Sets up an animated scroll for the texture layer.
Definition at line 663 of file OgreTextureUnitState.cpp. References addEffect(), Ogre::TextureUnitState::TextureEffect::arg1, Ogre::TextureUnitState::TextureEffect::arg2, ET_SCROLL, Ogre::Real, and Ogre::TextureUnitState::TextureEffect::type. Referenced by Ogre::Quake3Shader::createAsMaterial(), and Ogre::parseScrollAnim(). |
|
Sets the texture addressing mode, i.e. what happens at uv values above 1.0.
Definition at line 489 of file OgreTextureUnitState.cpp. References mAddressMode. Referenced by Ogre::Quake3Shader::createAsMaterial(), Ogre::Font::load(), Ogre::BspLevel::loadQuake3Level(), Ogre::parseTexAddressMode(), Ogre::SceneManager::setSkyBox(), and TextureUnitState(). |
|
Sets the anisotropy level to be used for this texture level.
Definition at line 862 of file OgreTextureUnitState.cpp. References mIsDefaultAniso, and mMaxAniso. Referenced by Ogre::parseAnisotropy(). |
|
Sets the index of the set of texture co-ords this layer uses.
Definition at line 358 of file OgreTextureUnitState.cpp. References mTextureCoordSetIndex. Referenced by Ogre::Quake3Shader::createAsMaterial(), Ogre::Pass::createTextureUnitState(), Ogre::BspLevel::loadQuake3Level(), Ogre::parseTexCoord(), and TextureUnitState(). |
|
Set a the detailed filtering options on this texture unit.
Definition at line 833 of file OgreTextureUnitState.cpp. References Ogre::FilterOptions, mIsDefaultFiltering, mMagFilter, mMinFilter, and mMipFilter. |
|
Set a single filtering option on this texture unit.
Definition at line 816 of file OgreTextureUnitState.cpp. References Ogre::FilterOptions, Ogre::FilterType, Ogre::FT_MAG, Ogre::FT_MIN, Ogre::FT_MIP, mIsDefaultFiltering, mMagFilter, and mMinFilter. |
|
Set the texture filtering for this unit, using the simplified interface.
Definition at line 796 of file OgreTextureUnitState.cpp. References Ogre::FO_ANISOTROPIC, Ogre::FO_LINEAR, Ogre::FO_NONE, Ogre::FO_POINT, mIsDefaultFiltering, Ogre::TextureFilterOptions, Ogre::TFO_ANISOTROPIC, Ogre::TFO_BILINEAR, Ogre::TFO_NONE, and Ogre::TFO_TRILINEAR. Referenced by Ogre::Font::createTextureFromFont(), and Ogre::parseFiltering(). |
|
Sets this texture layer to use a single texture, given the name of the texture to use on this layer.
Definition at line 164 of file OgreTextureUnitState.cpp. References _load(), Ogre::Pass::_recalculateHash(), isLoaded(), mCubic, mCurrentFrame, mFrames, mIsBlank, mNumFrames, mParent, mTextureType, setCubicTextureName(), Ogre::TEX_TYPE_CUBE_MAP, and Ogre::TextureType. Referenced by Ogre::Pass::createTextureUnitState(), Ogre::BspLevel::loadQuake3Level(), Ogre::parseTexture(), and TextureUnitState(). |
|
Sets the anticlockwise rotation factor applied to texture coordinates.
Definition at line 559 of file OgreTextureUnitState.cpp. References mRecalcTexMatrix, mRotate, and Ogre::Real. Referenced by Ogre::parseRotate(), and Ogre::TexCoordModifierControllerValue::setValue(). |
|
Sets the scaling factor applied to texture coordinates.
Definition at line 552 of file OgreTextureUnitState.cpp. References mRecalcTexMatrix, mUScale, mVScale, and Ogre::Real. Referenced by Ogre::parseScale(). |
|
Sets the translation offset of the texture, ie scrolls the texture.
Definition at line 545 of file OgreTextureUnitState.cpp. References mRecalcTexMatrix, mUMod, mVMod, and Ogre::Real. Referenced by Ogre::parseScroll(). |
|
Sets a matrix used to transform any texture coordinates on this layer.
Definition at line 539 of file OgreTextureUnitState.cpp. References mRecalcTexMatrix, and mTexModMatrix. |
|
As setTextureScale, but sets only U value.
Definition at line 635 of file OgreTextureUnitState.cpp. References mRecalcTexMatrix, mUScale, and Ogre::Real. Referenced by Ogre::Quake3Shader::createAsMaterial(), and Ogre::TexCoordModifierControllerValue::setValue(). |
|
As setTextureScroll, but sets only U value.
Definition at line 623 of file OgreTextureUnitState.cpp. References mRecalcTexMatrix, mUMod, and Ogre::Real. Referenced by Ogre::TexCoordModifierControllerValue::setValue(). |
|
As setTextureScale, but sets only V value.
Definition at line 641 of file OgreTextureUnitState.cpp. References mRecalcTexMatrix, mVScale, and Ogre::Real. Referenced by Ogre::Quake3Shader::createAsMaterial(), and Ogre::TexCoordModifierControllerValue::setValue(). |
|
As setTextureScroll, but sets only V value.
Definition at line 629 of file OgreTextureUnitState.cpp. References mRecalcTexMatrix, mVMod, and Ogre::Real. Referenced by Ogre::TexCoordModifierControllerValue::setValue(). |
|
Sets up a general time-relative texture modification effect.
Definition at line 680 of file OgreTextureUnitState.cpp. References addEffect(), Ogre::TextureUnitState::TextureEffect::amplitude, Ogre::TextureUnitState::TextureEffect::base, ET_TRANSFORM, Ogre::TextureUnitState::TextureEffect::frequency, Ogre::TextureUnitState::TextureEffect::phase, Ogre::Real, Ogre::TextureUnitState::TextureEffect::subtype, Ogre::TextureUnitState::TextureEffect::type, Ogre::WaveformType, and Ogre::TextureUnitState::TextureEffect::waveType. Referenced by Ogre::Quake3Shader::createAsMaterial(), and Ogre::parseWaveXform(). |
|
Definition at line 54 of file OgreTextureUnitState.h. |
|
Definition at line 878 of file OgreTextureUnitState.h. Referenced by getAlphaBlendMode(), setAlphaOperation(), and TextureUnitState(). |
|
Definition at line 876 of file OgreTextureUnitState.h. Referenced by getColourBlendFallbackDest(), and setColourOpMultipassFallback(). |
|
Definition at line 875 of file OgreTextureUnitState.h. Referenced by getColourBlendFallbackSrc(), and setColourOpMultipassFallback(). |
|
Definition at line 874 of file OgreTextureUnitState.h. Referenced by getColourBlendMode(), setColourOperationEx(), and TextureUnitState(). |
|
Definition at line 872 of file OgreTextureUnitState.h. Referenced by getTextureAddressingMode(), and setTextureAddressingMode(). |
|
Definition at line 886 of file OgreTextureUnitState.h. Referenced by getAlphaRejectFunction(), setAlphaRejectSettings(), and TextureUnitState(). |
|
Definition at line 887 of file OgreTextureUnitState.h. Referenced by getAlphaRejectValue(), setAlphaRejectSettings(), and TextureUnitState(). |
|
Definition at line 867 of file OgreTextureUnitState.h. Referenced by createAnimController(), TextureUnitState(), and ~TextureUnitState(). |
|
Duration of animation in seconds.
Definition at line 866 of file OgreTextureUnitState.h. Referenced by _load(), createAnimController(), getAnimationDuration(), setAnimatedTextureName(), and TextureUnitState(). |
|
Definition at line 868 of file OgreTextureUnitState.h. Referenced by isCubic(), setAnimatedTextureName(), setCubicTextureName(), setTextureName(), and TextureUnitState(). |
|
The xurrent animation frame.
Definition at line 862 of file OgreTextureUnitState.h. Referenced by getCurrentFrame(), getTextureName(), setAnimatedTextureName(), setCubicTextureName(), setCurrentFrame(), and setTextureName(). |
|
Definition at line 913 of file OgreTextureUnitState.h. Referenced by _load(), Ogre::RenderSystem::_setTextureUnitSettings(), addEffect(), getEffects(), hasViewRelativeTextureCoordinateGeneration(), operator=(), removeAllEffects(), removeEffect(), and ~TextureUnitState(). |
|
Definition at line 910 of file OgreTextureUnitState.h. Referenced by _load(), getFrameTextureName(), getTextureDimensions(), getTextureName(), operator=(), setAnimatedTextureName(), setCubicTextureName(), and setTextureName(). |
|
Definition at line 879 of file OgreTextureUnitState.h. Referenced by _load(), isBlank(), setBlank(), setTextureName(), and TextureUnitState(). |
|
Definition at line 902 of file OgreTextureUnitState.h. Referenced by getTextureAnisotropy(), setTextureAnisotropy(), and TextureUnitState(). |
|
Definition at line 903 of file OgreTextureUnitState.h. Referenced by getTextureFiltering(), setTextureFiltering(), and TextureUnitState(). |
|
Texture filtering - magnification.
Definition at line 896 of file OgreTextureUnitState.h. Referenced by getTextureFiltering(), setTextureFiltering(), and TextureUnitState(). |
|
Texture anisotropy.
Definition at line 900 of file OgreTextureUnitState.h. Referenced by getTextureAnisotropy(), setTextureAnisotropy(), and TextureUnitState(). |
|
Texture filtering - minification.
Definition at line 894 of file OgreTextureUnitState.h. Referenced by getTextureFiltering(), setTextureFiltering(), and TextureUnitState(). |
|
Texture filtering - mipmapping.
Definition at line 898 of file OgreTextureUnitState.h. Referenced by getTextureFiltering(), setTextureFiltering(), and TextureUnitState(). |
|
Number of frames of animation, or frames making up cubic.
Definition at line 860 of file OgreTextureUnitState.h. Referenced by _load(), getFrameTextureName(), getNumFrames(), operator=(), setAnimatedTextureName(), setCubicTextureName(), setCurrentFrame(), setTextureName(), and TextureUnitState(). |
|
Definition at line 854 of file OgreTextureUnitState.h. Referenced by _notifyNeedsRecompile(), isLoaded(), setAnimatedTextureName(), setCubicTextureName(), setCurrentFrame(), setTextureName(), and TextureUnitState(). |
|
Definition at line 881 of file OgreTextureUnitState.h. Referenced by setTextureRotate(), setTextureScale(), setTextureScroll(), setTextureTransform(), setTextureUScale(), setTextureUScroll(), setTextureVScale(), setTextureVScroll(), and TextureUnitState(). |
|
Definition at line 884 of file OgreTextureUnitState.h. Referenced by getTextureRotate(), recalcTextureMatrix(), setTextureRotate(), and TextureUnitState(). |
|
Definition at line 891 of file OgreTextureUnitState.h. |
|
Definition at line 885 of file OgreTextureUnitState.h. Referenced by getTextureTransform(), recalcTextureMatrix(), setTextureTransform(), and TextureUnitState(). |
|
Definition at line 871 of file OgreTextureUnitState.h. Referenced by getTextureCoordSet(), setTextureCoordSet(), and TextureUnitState(). |
|
Definition at line 869 of file OgreTextureUnitState.h. Referenced by _load(), getTextureType(), is3D(), setCubicTextureName(), setTextureName(), and TextureUnitState(). |
|
Definition at line 882 of file OgreTextureUnitState.h. Referenced by getTextureUScroll(), recalcTextureMatrix(), setTextureScroll(), setTextureUScroll(), and TextureUnitState(). |
|
Definition at line 883 of file OgreTextureUnitState.h. Referenced by getTextureUScale(), recalcTextureMatrix(), setTextureScale(), setTextureUScale(), and TextureUnitState(). |
|
Definition at line 890 of file OgreTextureUnitState.h. |
|
Definition at line 882 of file OgreTextureUnitState.h. Referenced by getTextureVScroll(), recalcTextureMatrix(), setTextureScroll(), setTextureVScroll(), and TextureUnitState(). |
|
Definition at line 883 of file OgreTextureUnitState.h. Referenced by getTextureVScale(), recalcTextureMatrix(), setTextureScale(), setTextureVScale(), and TextureUnitState(). |
|
Definition at line 890 of file OgreTextureUnitState.h. |
Copyright © 2002-2003 by The OGRE Team
Last modified Wed Jan 21 00:21:12 2004