#include <OgreTextureUnitState.h>
Public Types | |
enum | TextureEffectType { ET_ENVIRONMENT_MAP, ET_PROJECTIVE_TEXTURE, 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 (const Radian &angle) |
Sets the anticlockwise rotation factor applied to texture coordinates. | |
const Radian & | 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. | |
const LayerBlendModeEx & | getColourBlendMode (void) const |
Get multitexturing colour blending mode. | |
const 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 | setProjectiveTexturing (bool enabled, const Frustum *projectionSettings=0) |
Enables or disables projective texturing on this texture unit. | |
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 |
Radian | 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 941 of file OgreTextureUnitState.h. |
|
Enumeration to specify type of envmap.
Definition at line 81 of file OgreTextureUnitState.h. |
|
Texture addressing modes - default is TAM_WRAP.
Definition at line 112 of file OgreTextureUnitState.h. |
|
Enum identifying the frame indexes for faces of a cube map (not the composite 3D type.
Definition at line 124 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 98 of file OgreTextureUnitState.h. |
|
|
Definition at line 82 of file OgreTextureUnitState.cpp. References mParent. |
|
Default destructor.
Definition at line 131 of file OgreTextureUnitState.cpp. References mAnimController, and mEffects. |
|
|
Internal method for loading this object as part of Material::load.
Definition at line 718 of file OgreTextureUnitState.cpp. References createAnimController(), createEffectController(), mAnimDuration, mEffects, mFrames, mIsBlank, mNumFrames, mTextureType, and Ogre::String. Referenced by Ogre::BspLevel::loadQuake3Level(), setAnimatedTextureName(), and setTextureName(). |
|
Tells the class that it needs recompilation.
Definition at line 911 of file OgreTextureUnitState.cpp. References Ogre::Pass::_notifyNeedsRecompile(), and mParent. |
|
Internal method for unloading this object as part of Material::unload.
Definition at line 901 of file OgreTextureUnitState.cpp. |
|
Generic method for setting up texture effects.
Definition at line 435 of file OgreTextureUnitState.cpp. References Ogre::TextureUnitState::TextureEffect::controller, createEffectController(), ET_ENVIRONMENT_MAP, ET_PROJECTIVE_TEXTURE, ET_ROTATE, ET_SCROLL, isLoaded(), mEffects, and Ogre::TextureUnitState::TextureEffect::type. Referenced by setEnvironmentMap(), setProjectiveTexturing(), setRotateAnimation(), setScrollAnimation(), and setTransformAnimation(). |
|
Internal method for creating animation controller.
Definition at line 752 of file OgreTextureUnitState.cpp. References mAnimController, and mAnimDuration. Referenced by _load(). |
|
Internal method for creating texture effect controller.
Definition at line 758 of file OgreTextureUnitState.cpp. References Ogre::TextureUnitState::TextureEffect::amplitude, Ogre::TextureUnitState::TextureEffect::arg1, Ogre::TextureUnitState::TextureEffect::arg2, Ogre::TextureUnitState::TextureEffect::base, Ogre::TextureUnitState::TextureEffect::controller, Ogre::ControllerManager::createTextureRotater(), Ogre::ControllerManager::createTextureScroller(), Ogre::ControllerManager::createTextureWaveTransformer(), ET_ENVIRONMENT_MAP, ET_ROTATE, ET_SCROLL, ET_TRANSFORM, Ogre::TextureUnitState::TextureEffect::frequency, Ogre::TextureUnitState::TextureEffect::phase, Ogre::TextureUnitState::TextureEffect::subtype, Ogre::TextureUnitState::TextureEffect::type, and Ogre::TextureUnitState::TextureEffect::waveType. |
|
Get multitexturing alpha blending mode.
Definition at line 501 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 668 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 673 of file OgreTextureUnitState.cpp. References mAlphaRejectVal. Referenced by Ogre::RenderSystem::_setTextureUnitSettings(), and Ogre::MaterialSerializer::writeTextureUnit(). |
|
Definition at line 811 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 491 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 486 of file OgreTextureUnitState.cpp. References colourBlendFallbackSrc, and Ogre::SceneBlendFactor. Referenced by Ogre::MaterialSerializer::writeTextureUnit(). |
|
Get multitexturing colour blending mode.
Definition at line 496 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 347 of file OgreTextureUnitState.cpp. References mCurrentFrame. Referenced by Ogre::TextureFrameControllerValue::getValue(). |
|
Definition at line 817 of file OgreTextureUnitState.cpp. References mEffects. Referenced by Ogre::MaterialSerializer::writeTextureUnit(). |
|
Gets the name of the texture associated with a frame.
Definition at line 357 of file OgreTextureUnitState.cpp. References mFrames, mNumFrames, and Ogre::String. Referenced by Ogre::MaterialSerializer::writeTextureUnit(). |
|
Gets the number of frames for a texture.
Definition at line 352 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 867 of file OgreTextureUnitState.h. |
|
Gets the texture addressing mode, i.e. what happens at uv values above 1.0.
Definition at line 506 of file OgreTextureUnitState.cpp. References mAddressMode. Referenced by Ogre::RenderSystem::_setTextureUnitSettings(), and Ogre::MaterialSerializer::writeTextureUnit(). |
|
Definition at line 895 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 363 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 329 of file OgreTextureUnitState.cpp. References Except, Ogre::Texture::getHeight(), Ogre::Texture::getWidth(), and mFrames. |
|
Definition at line 869 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 168 of file OgreTextureUnitState.cpp. References mCurrentFrame, mFrames, and Ogre::String. Referenced by Ogre::RenderSystem::_setTextureUnitSettings(), and Ogre::MaterialSerializer::writeTextureUnit(). |
|
Definition at line 805 of file OgreTextureUnitState.cpp. References mRotate. Referenced by Ogre::MaterialSerializer::writeTextureUnit(). |
|
Gets the current texture transformation matrix.
Definition at line 580 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 258 of file OgreTextureUnitState.cpp. References mTextureType, and Ogre::TextureType. Referenced by Ogre::MaterialSerializer::writeTextureUnit(). |
|
Definition at line 793 of file OgreTextureUnitState.cpp. References mUScale, and Ogre::Real. Referenced by Ogre::MaterialSerializer::writeTextureUnit(). |
|
Definition at line 781 of file OgreTextureUnitState.cpp. References mUMod, and Ogre::Real. Referenced by Ogre::MaterialSerializer::writeTextureUnit(). |
|
Definition at line 799 of file OgreTextureUnitState.cpp. References mVScale, and Ogre::Real. Referenced by Ogre::MaterialSerializer::writeTextureUnit(). |
|
Definition at line 787 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 916 of file OgreTextureUnitState.cpp. References ENV_REFLECTION, ET_ENVIRONMENT_MAP, ET_PROJECTIVE_TEXTURE, and mEffects. Referenced by Ogre::SceneManager::renderSingleObject(). |
|
Returns true if this texture layer uses a composite 3D cubic texture.
Definition at line 253 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 480 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 248 of file OgreTextureUnitState.cpp. References mCubic. Referenced by Ogre::MaterialSerializer::writeTextureUnit(). |
|
Definition at line 906 of file OgreTextureUnitState.cpp. References Ogre::Pass::isLoaded(), and mParent. Referenced by addEffect(), setAnimatedTextureName(), and setTextureName(). |
|
Definition at line 151 of file OgreTextureUnitState.cpp. References Ogre::Pass::_dirtyHash(), mEffects, mFrames, mNumFrames, mParent, Ogre::uchar, and Ogre::ushort. |
|
Internal method for calculating texture matrix.
Definition at line 588 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 463 of file OgreTextureUnitState.cpp. References mEffects. |
|
Removes a single effect applied to this texture layer.
Definition at line 532 of file OgreTextureUnitState.cpp. References mEffects. Referenced by setEnvironmentMap(), setProjectiveTexturing(), setRotateAnimation(), setScrollAnimation(), and setTransformAnimation(). |
|
Sets the alpha operation to be applied to this texture.
Definition at line 420 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 662 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 302 of file OgreTextureUnitState.cpp. References Ogre::Pass::_dirtyHash(), _load(), Except, isLoaded(), mAnimDuration, MAX_FRAMES, mCubic, mCurrentFrame, mFrames, mNumFrames, mParent, Ogre::Real, and Ogre::String. |
|
Sets the names of the texture images for an animated texture.
Definition at line 264 of file OgreTextureUnitState.cpp. References Ogre::Pass::_dirtyHash(), _load(), Except, isLoaded(), mAnimDuration, MAX_FRAMES, mCubic, mCurrentFrame, mFrames, mNumFrames, mParent, Ogre::Real, and Ogre::String. Referenced by Ogre::Quake3Shader::createAsMaterial(), and Ogre::parseAnimTexture(). |
|
Sets this texture layer to be blank.
Definition at line 549 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 388 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(), Ogre::SceneManager::renderModulativeTextureShadowedQueueGroupObjects(), and TextureUnitState(). |
|
Setting advanced blending options.
Definition at line 373 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::SceneManager::initShadowVolumeMaterials(), Ogre::parseColourOpEx(), setColourOperation(), and Ogre::SceneManager::setShadowColour(). |
|
Sets the multipass fallback operation for this layer, if you used TextureUnitState::setColourOperationEx and not enough multitexturing hardware is available.
Definition at line 414 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 233 of file OgreTextureUnitState.cpp. References Ogre::Pass::_notifyNeedsRecompile(), mCubic, mCurrentFrame, mFrames, mNumFrames, mParent, mTextureType, Ogre::String, 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 206 of file OgreTextureUnitState.cpp. References Ogre::String. Referenced by Ogre::parseCubicTexture(), and setTextureName(). |
|
Changes the active frame in an animated or multi-image texture.
Definition at line 338 of file OgreTextureUnitState.cpp. References Ogre::Pass::_dirtyHash(), 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 516 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(). |
|
Enables or disables projective texturing on this texture unit.
Definition at line 936 of file OgreTextureUnitState.cpp. References addEffect(), ET_PROJECTIVE_TEXTURE, Ogre::TextureUnitState::TextureEffect::frustum, removeEffect(), and Ogre::TextureUnitState::TextureEffect::type. Referenced by Ogre::SceneManager::createShadowTextures(), and Ogre::SceneManager::renderModulativeTextureShadowedQueueGroupObjects(). |
|
Sets up an animated texture rotation for this layer.
Definition at line 690 of file OgreTextureUnitState.cpp. References addEffect(), Ogre::TextureUnitState::TextureEffect::arg1, ET_ROTATE, Ogre::Real, removeEffect(), 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 678 of file OgreTextureUnitState.cpp. References addEffect(), Ogre::TextureUnitState::TextureEffect::arg1, Ogre::TextureUnitState::TextureEffect::arg2, ET_SCROLL, Ogre::Real, removeEffect(), 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 511 of file OgreTextureUnitState.cpp. References mAddressMode. Referenced by Ogre::Quake3Shader::createAsMaterial(), Ogre::SceneManager::createShadowTextures(), Ogre::SceneManager::initShadowVolumeMaterials(), Ogre::Font::load(), Ogre::BspLevel::loadQuake3Level(), Ogre::parseTexAddressMode(), Ogre::SceneManager::renderModulativeTextureShadowedQueueGroupObjects(), Ogre::SceneManager::setSkyBox(), and TextureUnitState(). |
|
Sets the anisotropy level to be used for this texture level.
Definition at line 889 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 368 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 860 of file OgreTextureUnitState.cpp. References Ogre::FilterOptions, mIsDefaultFiltering, mMagFilter, mMinFilter, and mMipFilter. |
|
Set a single filtering option on this texture unit.
Definition at line 843 of file OgreTextureUnitState.cpp. References Ogre::FilterOptions, Ogre::FilterType, Ogre::FT_MAG, Ogre::FT_MIN, Ogre::FT_MIP, mIsDefaultFiltering, mMagFilter, mMinFilter, and mMipFilter. |
|
Set the texture filtering for this unit, using the simplified interface.
Definition at line 823 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 174 of file OgreTextureUnitState.cpp. References Ogre::Pass::_dirtyHash(), _load(), isLoaded(), mCubic, mCurrentFrame, mFrames, mIsBlank, mNumFrames, mParent, mTextureType, setCubicTextureName(), Ogre::String, Ogre::TEX_TYPE_CUBE_MAP, and Ogre::TextureType. Referenced by Ogre::Pass::createTextureUnitState(), Ogre::BspLevel::loadQuake3Level(), Ogre::parseTexture(), Ogre::SceneManager::renderModulativeTextureShadowedQueueGroupObjects(), and TextureUnitState(). |
|
Sets the anticlockwise rotation factor applied to texture coordinates.
Definition at line 574 of file OgreTextureUnitState.cpp. References mRecalcTexMatrix, and mRotate. Referenced by Ogre::parseRotate(), and Ogre::TexCoordModifierControllerValue::setValue(). |
|
Sets the scaling factor applied to texture coordinates.
Definition at line 567 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 560 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 554 of file OgreTextureUnitState.cpp. References mRecalcTexMatrix, and mTexModMatrix. |
|
As setTextureScale, but sets only U value.
Definition at line 650 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 638 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 656 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 644 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 701 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, removeEffect(), 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 907 of file OgreTextureUnitState.h. Referenced by getAlphaBlendMode(), setAlphaOperation(), and TextureUnitState(). |
|
Definition at line 905 of file OgreTextureUnitState.h. Referenced by getColourBlendFallbackDest(), and setColourOpMultipassFallback(). |
|
Definition at line 904 of file OgreTextureUnitState.h. Referenced by getColourBlendFallbackSrc(), and setColourOpMultipassFallback(). |
|
Definition at line 903 of file OgreTextureUnitState.h. Referenced by getColourBlendMode(), setColourOperationEx(), and TextureUnitState(). |
|
Definition at line 901 of file OgreTextureUnitState.h. Referenced by getTextureAddressingMode(), and setTextureAddressingMode(). |
|
Definition at line 915 of file OgreTextureUnitState.h. Referenced by getAlphaRejectFunction(), setAlphaRejectSettings(), and TextureUnitState(). |
|
Definition at line 916 of file OgreTextureUnitState.h. Referenced by getAlphaRejectValue(), setAlphaRejectSettings(), and TextureUnitState(). |
|
Definition at line 896 of file OgreTextureUnitState.h. Referenced by createAnimController(), TextureUnitState(), and ~TextureUnitState(). |
|
Duration of animation in seconds.
Definition at line 895 of file OgreTextureUnitState.h. Referenced by _load(), createAnimController(), getAnimationDuration(), setAnimatedTextureName(), and TextureUnitState(). |
|
Definition at line 897 of file OgreTextureUnitState.h. Referenced by isCubic(), setAnimatedTextureName(), setCubicTextureName(), setTextureName(), and TextureUnitState(). |
|
The xurrent animation frame.
Definition at line 891 of file OgreTextureUnitState.h. Referenced by getCurrentFrame(), getTextureName(), setAnimatedTextureName(), setCubicTextureName(), setCurrentFrame(), setTextureName(), and TextureUnitState(). |
|
Definition at line 942 of file OgreTextureUnitState.h. Referenced by _load(), Ogre::RenderSystem::_setTextureUnitSettings(), addEffect(), getEffects(), hasViewRelativeTextureCoordinateGeneration(), operator=(), removeAllEffects(), removeEffect(), and ~TextureUnitState(). |
|
Definition at line 939 of file OgreTextureUnitState.h. Referenced by _load(), getFrameTextureName(), getTextureDimensions(), getTextureName(), operator=(), setAnimatedTextureName(), setCubicTextureName(), setTextureName(), and TextureUnitState(). |
|
Definition at line 908 of file OgreTextureUnitState.h. Referenced by _load(), isBlank(), setBlank(), setTextureName(), and TextureUnitState(). |
|
Definition at line 931 of file OgreTextureUnitState.h. Referenced by getTextureAnisotropy(), setTextureAnisotropy(), and TextureUnitState(). |
|
Definition at line 932 of file OgreTextureUnitState.h. Referenced by getTextureFiltering(), setTextureFiltering(), and TextureUnitState(). |
|
Texture filtering - magnification.
Definition at line 925 of file OgreTextureUnitState.h. Referenced by getTextureFiltering(), setTextureFiltering(), and TextureUnitState(). |
|
Texture anisotropy.
Definition at line 929 of file OgreTextureUnitState.h. Referenced by getTextureAnisotropy(), setTextureAnisotropy(), and TextureUnitState(). |
|
Texture filtering - minification.
Definition at line 923 of file OgreTextureUnitState.h. Referenced by getTextureFiltering(), setTextureFiltering(), and TextureUnitState(). |
|
Texture filtering - mipmapping.
Definition at line 927 of file OgreTextureUnitState.h. Referenced by getTextureFiltering(), setTextureFiltering(), and TextureUnitState(). |
|
Number of frames of animation, or frames making up cubic.
Definition at line 889 of file OgreTextureUnitState.h. Referenced by _load(), getFrameTextureName(), getNumFrames(), operator=(), setAnimatedTextureName(), setCubicTextureName(), setCurrentFrame(), setTextureName(), and TextureUnitState(). |
|
Definition at line 883 of file OgreTextureUnitState.h. Referenced by _notifyNeedsRecompile(), isLoaded(), operator=(), setAnimatedTextureName(), setCubicTextureName(), setCurrentFrame(), setTextureName(), and TextureUnitState(). |
|
Definition at line 910 of file OgreTextureUnitState.h. Referenced by setTextureRotate(), setTextureScale(), setTextureScroll(), setTextureTransform(), setTextureUScale(), setTextureUScroll(), setTextureVScale(), setTextureVScroll(), and TextureUnitState(). |
|
Definition at line 913 of file OgreTextureUnitState.h. Referenced by getTextureRotate(), recalcTextureMatrix(), setTextureRotate(), and TextureUnitState(). |
|
Definition at line 920 of file OgreTextureUnitState.h. |
|
Definition at line 914 of file OgreTextureUnitState.h. Referenced by getTextureTransform(), recalcTextureMatrix(), setTextureTransform(), and TextureUnitState(). |
|
Definition at line 900 of file OgreTextureUnitState.h. Referenced by getTextureCoordSet(), setTextureCoordSet(), and TextureUnitState(). |
|
Definition at line 898 of file OgreTextureUnitState.h. Referenced by _load(), getTextureType(), is3D(), setCubicTextureName(), setTextureName(), and TextureUnitState(). |
|
Definition at line 911 of file OgreTextureUnitState.h. Referenced by getTextureUScroll(), recalcTextureMatrix(), setTextureScroll(), setTextureUScroll(), and TextureUnitState(). |
|
Definition at line 912 of file OgreTextureUnitState.h. Referenced by getTextureUScale(), recalcTextureMatrix(), setTextureScale(), setTextureUScale(), and TextureUnitState(). |
|
Definition at line 919 of file OgreTextureUnitState.h. |
|
Definition at line 911 of file OgreTextureUnitState.h. Referenced by getTextureVScroll(), recalcTextureMatrix(), setTextureScroll(), setTextureVScroll(), and TextureUnitState(). |
|
Definition at line 912 of file OgreTextureUnitState.h. Referenced by getTextureVScale(), recalcTextureMatrix(), setTextureScale(), setTextureVScale(), and TextureUnitState(). |
|
Definition at line 919 of file OgreTextureUnitState.h. |
Copyright © 2002-2003 by The OGRE Team
Last modified Sun Nov 28 19:51:45 2004