OgreTextureUnitState.h
Go to the documentation of this file.
/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org
Copyright (c) 2000-2013 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-----------------------------------------------------------------------------
*/
#ifndef __TextureUnitState_H__
#define __TextureUnitState_H__
#include "OgrePrerequisites.h"
#include "OgreCommon.h"
#include "OgreBlendMode.h"
#include "OgreMatrix4.h"
#include "OgreIteratorWrappers.h"
#include "OgreString.h"
#include "OgreTexture.h"
#include "OgreHeaderPrefix.h"
namespace Ogre {
class _OgreExport TextureUnitState : public TextureUnitStateAlloc
{
friend class RenderSystem;
public:
enum TextureEffectType
{
ET_ENVIRONMENT_MAP,
ET_PROJECTIVE_TEXTURE,
ET_UVSCROLL,
ET_USCROLL,
ET_VSCROLL,
ET_ROTATE,
ET_TRANSFORM
};
enum EnvMapType
{
ENV_PLANAR,
ENV_CURVED,
ENV_REFLECTION,
ENV_NORMAL
};
enum TextureTransformType
{
TT_TRANSLATE_U,
TT_TRANSLATE_V,
TT_SCALE_U,
TT_SCALE_V,
TT_ROTATE
};
enum TextureAddressingMode
{
TAM_WRAP,
TAM_MIRROR,
TAM_CLAMP,
TAM_BORDER,
TAM_UNKNOWN = 99
};
struct UVWAddressingMode
{
TextureAddressingMode u, v, w;
};
enum TextureCubeFace
{
CUBE_FRONT = 0,
CUBE_BACK = 1,
CUBE_LEFT = 2,
CUBE_RIGHT = 3,
CUBE_UP = 4,
CUBE_DOWN = 5
};
struct TextureEffect {
TextureEffectType type;
int subtype;
Real arg1, arg2;
WaveformType waveType;
Real base;
Real frequency;
Real phase;
Real amplitude;
Controller<Real>* controller;
const Frustum* frustum;
};
typedef multimap<TextureEffectType, TextureEffect>::type EffectMap;
TextureUnitState(Pass* parent);
TextureUnitState(Pass* parent, const TextureUnitState& oth );
TextureUnitState & operator = ( const TextureUnitState& oth );
~TextureUnitState();
TextureUnitState( Pass* parent, const String& texName, unsigned int texCoordSet = 0);
const String& getTextureName(void) const;
void setTextureName( const String& name, TextureType ttype = TEX_TYPE_2D);
void setTexture( const TexturePtr& texPtr);
void setCubicTextureName( const String& name, bool forUVW = false );
void setCubicTextureName( const String* const names, bool forUVW = false );
void setCubicTexture( const TexturePtr* const texPtrs, bool forUVW = false );
void setAnimatedTextureName( const String& name, unsigned int numFrames, Real duration = 0 );
void setAnimatedTextureName( const String* const names, unsigned int numFrames, Real duration = 0 );
std::pair< size_t, size_t > getTextureDimensions( unsigned int frame = 0 ) const;
void setCurrentFrame( unsigned int frameNumber );
unsigned int getCurrentFrame(void) const;
const String& getFrameTextureName(unsigned int frameNumber) const;
void setFrameTextureName(const String& name, unsigned int frameNumber);
void addFrameTextureName(const String& name);
void deleteFrameTextureName(const size_t frameNumber);
unsigned int getNumFrames(void) const;
enum BindingType
{
BT_FRAGMENT = 0,
BT_VERTEX = 1,
BT_GEOMETRY = 2,
BT_TESSELATION_HULL = 3,
BT_TESSELATION_DOMAIN = 4,
BT_COMPUTE = 5
};
enum ContentType
{
CONTENT_NAMED = 0,
CONTENT_SHADOW = 1,
CONTENT_COMPOSITOR = 2
};
void setBindingType(BindingType bt);
BindingType getBindingType(void) const;
void setContentType(ContentType ct);
ContentType getContentType(void) const;
bool isCubic(void) const;
bool is3D(void) const;
TextureType getTextureType(void) const;
void setDesiredFormat(PixelFormat desiredFormat);
PixelFormat getDesiredFormat(void) const;
void setNumMipmaps(int numMipmaps);
int getNumMipmaps(void) const;
void setIsAlpha(bool isAlpha);
bool getIsAlpha(void) const;
Real getGamma() const { return mGamma; }
void setGamma(Real gamma) { mGamma = gamma; }
void setHardwareGammaEnabled(bool enabled);
bool isHardwareGammaEnabled() const;
unsigned int getTextureCoordSet(void) const;
void setTextureCoordSet(unsigned int set);
void setTextureTransform(const Matrix4& xform);
const Matrix4& getTextureTransform(void) const;
void setTextureScroll(Real u, Real v);
void setTextureUScroll(Real value);
Real getTextureUScroll(void) const;
void setTextureVScroll(Real value);
Real getTextureVScroll(void) const;
void setTextureUScale(Real value);
Real getTextureUScale(void) const;
void setTextureVScale(Real value);
Real getTextureVScale(void) const;
void setTextureScale(Real uScale, Real vScale);
void setTextureRotate(const Radian& angle);
const Radian& getTextureRotate(void) const;
const UVWAddressingMode& getTextureAddressingMode(void) const;
void setTextureAddressingMode( TextureAddressingMode tam);
void setTextureAddressingMode( TextureAddressingMode u,
TextureAddressingMode v, TextureAddressingMode w);
void setTextureAddressingMode( const UVWAddressingMode& uvw);
void setTextureBorderColour(const ColourValue& colour);
const ColourValue& getTextureBorderColour(void) const;
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);
void setColourOperation( const LayerBlendOperation op);
void setColourOpMultipassFallback( const SceneBlendFactor sourceFactor, const SceneBlendFactor destFactor);
const LayerBlendModeEx& getColourBlendMode(void) const;
const LayerBlendModeEx& getAlphaBlendMode(void) const;
SceneBlendFactor getColourBlendFallbackSrc(void) const;
SceneBlendFactor getColourBlendFallbackDest(void) const;
void setAlphaOperation(LayerBlendOperationEx op,
LayerBlendSource source1 = LBS_TEXTURE,
LayerBlendSource source2 = LBS_CURRENT,
Real arg1 = 1.0,
Real arg2 = 1.0,
Real manualBlend = 0.0);
void addEffect(TextureEffect& effect);
void setEnvironmentMap(bool enable, EnvMapType envMapType = ENV_CURVED);
void setScrollAnimation(Real uSpeed, Real vSpeed);
void setRotateAnimation(Real speed);
void setTransformAnimation( const TextureTransformType ttype,
const WaveformType waveType, Real base = 0, Real frequency = 1, Real phase = 0, Real amplitude = 1 );
void setProjectiveTexturing(bool enabled, const Frustum* projectionSettings = 0);
void removeAllEffects(void);
void removeEffect( const TextureEffectType type );
bool isBlank(void) const;
void setBlank(void);
bool isTextureLoadFailing() const { return mTextureLoadFailed; }
void retryTextureLoad() { mTextureLoadFailed = false; }
const EffectMap& getEffects(void) const;
Real getAnimationDuration(void) const;
void setTextureFiltering(TextureFilterOptions filterType);
void setTextureFiltering(FilterType ftype, FilterOptions opts);
void setTextureFiltering(FilterOptions minFilter, FilterOptions magFilter, FilterOptions mipFilter);
FilterOptions getTextureFiltering(FilterType ftpye) const;
void setTextureCompareEnabled(bool enabled);
bool getTextureCompareEnabled() const;
void setTextureCompareFunction(CompareFunction function);
CompareFunction getTextureCompareFunction() const;
void setTextureAnisotropy(unsigned int maxAniso);
unsigned int getTextureAnisotropy() const;
void setTextureMipmapBias(float bias) { mMipmapBias = bias; }
float getTextureMipmapBias(void) const { return mMipmapBias; }
void setCompositorReference(const String& compositorName, const String& textureName, size_t mrtIndex = 0);
const String& getReferencedCompositorName() const { return mCompositorRefName; }
const String& getReferencedTextureName() const { return mCompositorRefTexName; }
size_t getReferencedMRTIndex() const { return mCompositorRefMrtIndex; }
Pass* getParent(void) const { return mParent; }
void _prepare(void);
void _unprepare(void);
void _load(void);
void _unload(void);
bool hasViewRelativeTextureCoordinateGeneration(void) const;
bool isLoaded(void) const;
void _notifyNeedsRecompile(void);
void setName(const String& name);
const String& getName(void) const { return mName; }
void setTextureNameAlias(const String& name);
const String& getTextureNameAlias(void) const { return mTextureNameAlias;}
bool applyTextureAliases(const AliasTextureNamePairList& aliasList, const bool apply = true);
void _notifyParent(Pass* parent);
const TexturePtr& _getTexturePtr(void) const;
const TexturePtr& _getTexturePtr(size_t frame) const;
void _setTexturePtr(const TexturePtr& texptr);
void _setTexturePtr(const TexturePtr& texptr, size_t frame);
size_t calculateSize(void) const;
Controller<Real>* _getAnimController() const { return mAnimController; }
protected:
// State
unsigned int mCurrentFrame;
Real mAnimDuration;
bool mCubic;
TextureType mTextureType;
PixelFormat mDesiredFormat;
int mTextureSrcMipmaps;
unsigned int mTextureCoordSetIndex;
UVWAddressingMode mAddressMode;
ColourValue mBorderColour;
LayerBlendModeEx mColourBlendMode;
SceneBlendFactor mColourBlendFallbackSrc;
SceneBlendFactor mColourBlendFallbackDest;
LayerBlendModeEx mAlphaBlendMode;
mutable bool mTextureLoadFailed;
bool mIsAlpha;
bool mHwGamma;
Real mGamma;
mutable bool mRecalcTexMatrix;
Real mUMod, mVMod;
Real mUScale, mVScale;
Radian mRotate;
mutable Matrix4 mTexModMatrix;
FilterOptions mMinFilter;
FilterOptions mMagFilter;
FilterOptions mMipFilter;
bool mCompareEnabled;
CompareFunction mCompareFunc;
unsigned int mMaxAniso;
float mMipmapBias;
bool mIsDefaultAniso;
bool mIsDefaultFiltering;
BindingType mBindingType;
ContentType mContentType;
size_t mCompositorRefMrtIndex;
//-----------------------------------------------------------------------------
// Complex members (those that can't be copied using memcpy) are at the end to
// allow for fast copying of the basic members.
//
vector<String>::type mFrames;
mutable vector<TexturePtr>::type mFramePtrs;
String mName;
String mTextureNameAlias;
EffectMap mEffects;
String mCompositorRefName;
String mCompositorRefTexName;
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
// Pointer members (those that can't be copied using memcpy), and MUST
// preserving even if assign from others
//
Pass* mParent;
Controller<Real>* mAnimController;
//-----------------------------------------------------------------------------
void recalcTextureMatrix(void) const;
void createAnimController(void);
void createEffectController(TextureEffect& effect);
void ensurePrepared(size_t frame) const;
void ensureLoaded(size_t frame) const;
};
} // namespace Ogre
#include "OgreHeaderSuffix.h"
#endif // __TextureUnitState_H__
Ogre::TextureUnitState::getReferencedCompositorName
const String & getReferencedCompositorName() const
Gets the name of the compositor that this texture referneces.
Definition: OgreTextureUnitState.h:1135
Ogre::TextureUnitState::_getAnimController
Controller< Real > * _getAnimController() const
Gets the animation controller (as created because of setAnimatedTexture) if it exists.
Definition: OgreTextureUnitState.h:1212
Ogre::TextureUnitState::mCompareFunc
CompareFunction mCompareFunc
Definition: OgreTextureUnitState.h:1254
Ogre::TextureUnitState::getReferencedMRTIndex
size_t getReferencedMRTIndex() const
Gets the MRT index of the texture in the compositor that this texture references. ...
Definition: OgreTextureUnitState.h:1139
Ogre::LBS_CURRENT
the colour as built up from previous stages
Definition: OgreBlendMode.h:115
Ogre::TextureUnitState::mTextureLoadFailed
bool mTextureLoadFailed
Definition: OgreTextureUnitState.h:1235
Ogre::TextureUnitState::ET_ROTATE
Constant rotation.
Definition: OgreTextureUnitState.h:84
Ogre::TextureUnitState::ET_USCROLL
Constant u scrolling effect.
Definition: OgreTextureUnitState.h:80
Ogre::TextureUnitState::getReferencedTextureName
const String & getReferencedTextureName() const
Gets the name of the texture in the compositor that this texture references.
Definition: OgreTextureUnitState.h:1137
Ogre::Pass
Class defining a single pass of a Technique (of a Material), i.e.
Definition: OgrePass.h:80
Ogre::TextureUnitState::UVWAddressingMode
Texture addressing mode for each texture coordinate.
Definition: OgreTextureUnitState.h:141
Ogre::TextureUnitState::getTextureNameAlias
const String & getTextureNameAlias(void) const
Gets the Texture Name Alias of the Texture Unit.
Definition: OgreTextureUnitState.h:1176
Ogre::TextureUnitState::mBorderColour
ColourValue mBorderColour
Definition: OgreTextureUnitState.h:1228
_OgreExport
#define _OgreExport
Definition: OgrePlatform.h:257
Ogre::LayerBlendSource
LayerBlendSource
List of valid sources of values for blending operations used in TextureUnitState::setColourOperation ...
Definition: OgreBlendMode.h:112
Ogre::TextureUnitState::mRecalcTexMatrix
bool mRecalcTexMatrix
Definition: OgreTextureUnitState.h:1240
Ogre::TextureUnitState::mTextureSrcMipmaps
int mTextureSrcMipmaps
Definition: OgreTextureUnitState.h:1224
Ogre::TextureFilterOptions
TextureFilterOptions
High-level filtering options providing shortcuts to settings the minification, magnification and mip ...
Definition: OgreCommon.h:78
Ogre::WaveformType
WaveformType
Enumerates the wave types usable with the Ogre engine.
Definition: OgreCommon.h:161
Ogre::TextureUnitState::getTextureMipmapBias
float getTextureMipmapBias(void) const
Gets the bias value applied to the mipmap calculation.
Definition: OgreTextureUnitState.h:1120
Ogre::TextureUnitState::TextureEffect::phase
Real phase
Definition: OgreTextureUnitState.h:167
Ogre::TextureUnitState::TAM_CLAMP
Texture clamps at 1.0.
Definition: OgreTextureUnitState.h:133
Ogre::TextureUnitState::mHwGamma
bool mHwGamma
Definition: OgreTextureUnitState.h:1237
Ogre::TEX_TYPE_2D
2D texture, used in combination with 2D texture coordinates (default)
Definition: OgreTexture.h:72
Ogre::TextureUnitState::mTextureCoordSetIndex
unsigned int mTextureCoordSetIndex
Request number of mipmaps.
Definition: OgreTextureUnitState.h:1226
Ogre::TextureUnitState::ET_ENVIRONMENT_MAP
Generate all texture coords based on angle between camera and vertex.
Definition: OgreTextureUnitState.h:74
Ogre::TextureUnitState::mMipmapBias
float mMipmapBias
Mipmap bias (always float, not Real).
Definition: OgreTextureUnitState.h:1259
Ogre::ColourValue
Class representing colour.
Definition: OgreColourValue.h:57
Ogre::Real
float Real
Software floating point type.
Definition: OgrePrerequisites.h:70
Ogre::TextureUnitState::ENV_CURVED
Envmap based on dot of vector from camera to vertex and vertex normal, good for curves.
Definition: OgreTextureUnitState.h:100
OgreString.h
Ogre::TextureUnitState::mAnimDuration
Real mAnimDuration
Duration of animation in seconds.
Definition: OgreTextureUnitState.h:1219
Ogre::TextureUnitState::TT_TRANSLATE_U
Definition: OgreTextureUnitState.h:114
Ogre::PixelFormat
PixelFormat
The pixel format used for images, textures, and render surfaces.
Definition: OgrePixelFormat.h:43
Ogre::TextureUnitState::TT_TRANSLATE_V
Definition: OgreTextureUnitState.h:115
Ogre::TextureUnitState::mName
String mName
Optional name for the TUS.
Definition: OgreTextureUnitState.h:1276
Ogre::TextureUnitState::ENV_REFLECTION
Envmap intended to supply reflection vectors for cube mapping.
Definition: OgreTextureUnitState.h:102
Ogre::TextureUnitState::mGamma
Real mGamma
Definition: OgreTextureUnitState.h:1238
Ogre::TextureUnitState::mVMod
Real mVMod
Definition: OgreTextureUnitState.h:1241
Ogre::TextureUnitState::mCompositorRefName
String mCompositorRefName
The data that references the compositor.
Definition: OgreTextureUnitState.h:1280
Ogre::TextureUnitState::TextureEffect::subtype
int subtype
Definition: OgreTextureUnitState.h:162
Ogre::TextureUnitState::mColourBlendFallbackDest
SceneBlendFactor mColourBlendFallbackDest
Definition: OgreTextureUnitState.h:1232
Ogre::ColourValue::White
static const ColourValue White
Definition: OgreColourValue.h:62
OgreCommon.h
Ogre::TextureUnitState::mColourBlendFallbackSrc
SceneBlendFactor mColourBlendFallbackSrc
Definition: OgreTextureUnitState.h:1231
Ogre::TextureUnitState::TextureEffect::frequency
Real frequency
Definition: OgreTextureUnitState.h:166
Ogre::TextureUnitState::mAnimController
Controller< Real > * mAnimController
Definition: OgreTextureUnitState.h:1289
Ogre::Controller< Real >
Ogre::Matrix4
Class encapsulating a standard 4x4 homogeneous matrix.
Definition: OgreMatrix4.h:78
Ogre::TextureUnitState::mCurrentFrame
unsigned int mCurrentFrame
The current animation frame.
Definition: OgreTextureUnitState.h:1216
Ogre::TextureUnitState::mColourBlendMode
LayerBlendModeEx mColourBlendMode
Definition: OgreTextureUnitState.h:1230
Ogre::TextureUnitState
Class representing the state of a single texture unit during a Pass of a Technique, of a Material.
Definition: OgreTextureUnitState.h:62
OgrePrerequisites.h
Ogre::TextureUnitState::mIsAlpha
bool mIsAlpha
Definition: OgreTextureUnitState.h:1236
OgreTexture.h
Ogre::TextureUnitState::mMipFilter
FilterOptions mMipFilter
Texture filtering - mipmapping.
Definition: OgreTextureUnitState.h:1251
Ogre::TextureUnitState::EnvMapType
EnvMapType
Enumeration to specify type of envmap.
Definition: OgreTextureUnitState.h:95
Ogre::TextureUnitState::mRotate
Radian mRotate
Definition: OgreTextureUnitState.h:1243
Ogre::TextureUnitState::UVWAddressingMode::w
TextureAddressingMode w
Definition: OgreTextureUnitState.h:143
Ogre::TextureUnitState::mTextureNameAlias
String mTextureNameAlias
Optional alias for texture frames.
Definition: OgreTextureUnitState.h:1277
Ogre::AliasTextureNamePairList
map< String, String >::type AliasTextureNamePairList
Alias / Texture name pair (first = alias, second = texture name)
Definition: OgreCommon.h:553
Ogre::TextureUnitState::getGamma
Real getGamma() const
Returns the gamma adjustment factor applied to this texture on loading.
Definition: OgreTextureUnitState.h:566
Ogre::TextureUnitState::mMagFilter
FilterOptions mMagFilter
Texture filtering - magnification.
Definition: OgreTextureUnitState.h:1249
Ogre::TextureUnitState::ET_VSCROLL
Constant u/v scrolling effect.
Definition: OgreTextureUnitState.h:82
Ogre::LayerBlendModeEx
Class which manages blending of both colour and alpha components.
Definition: OgreBlendMode.h:139
Ogre::RenderSystem
Defines the functionality of a 3D API.
Definition: OgreRenderSystem.h:125
Ogre::TextureUnitState::TextureAddressingMode
TextureAddressingMode
Texture addressing modes - default is TAM_WRAP.
Definition: OgreTextureUnitState.h:126
Ogre::TextureType
TextureType
Enum identifying the texture type.
Definition: OgreTexture.h:67
Ogre::CompareFunction
CompareFunction
Comparison functions used for the depth/stencil buffer operations and others.
Definition: OgreCommon.h:64
Ogre::TextureUnitState::isTextureLoadFailing
bool isTextureLoadFailing() const
Tests if the texture associated with this unit has failed to load.
Definition: OgreTextureUnitState.h:1042
Ogre::TextureUnitState::TAM_WRAP
Texture wraps at values over 1.0.
Definition: OgreTextureUnitState.h:129
OgreMatrix4.h
Ogre::String
_StringBase String
Definition: OgrePrerequisites.h:439
Ogre::TextureUnitState::ENV_PLANAR
Envmap based on vector from camera to vertex position, good for planar geometry.
Definition: OgreTextureUnitState.h:98
Ogre::TextureUnitState::TT_SCALE_U
Definition: OgreTextureUnitState.h:116
Ogre::TextureUnitState::getParent
Pass * getParent(void) const
Gets the parent Pass object.
Definition: OgreTextureUnitState.h:1142
Ogre::TextureUnitState::mAddressMode
UVWAddressingMode mAddressMode
Definition: OgreTextureUnitState.h:1227
Ogre::TextureUnitState::mCompositorRefMrtIndex
size_t mCompositorRefMrtIndex
The index of the referenced texture if referencing an MRT in a compositor.
Definition: OgreTextureUnitState.h:1268
Ogre::TextureUnitState::BindingType
BindingType
The type of unit to bind the texture settings to.
Definition: OgreTextureUnitState.h:468
Ogre::TextureUnitState::ET_UVSCROLL
Constant u/v scrolling effect.
Definition: OgreTextureUnitState.h:78
Ogre::TextureUnitState::TextureEffect::frustum
const Frustum * frustum
Definition: OgreTextureUnitState.h:170
Ogre::TextureUnitState::TextureEffect::amplitude
Real amplitude
Definition: OgreTextureUnitState.h:168
OgreHeaderSuffix.h
Ogre::TextureUnitState::TextureEffect::base
Real base
Definition: OgreTextureUnitState.h:165
Ogre::TextureUnitState::setTextureMipmapBias
void setTextureMipmapBias(float bias)
Sets the bias value applied to the mipmap calculation.
Definition: OgreTextureUnitState.h:1116
Ogre::TextureUnitState::mTextureType
TextureType mTextureType
Is this a series of 6 2D textures to make up a cube?
Definition: OgreTextureUnitState.h:1222
Ogre::TextureUnitState::TextureEffect::type
TextureEffectType type
Definition: OgreTextureUnitState.h:161
Ogre::TextureUnitState::TextureEffectType
TextureEffectType
Definition of the broad types of texture effect you can apply to a texture unit.
Definition: OgreTextureUnitState.h:71
Ogre::TextureUnitState::TAM_MIRROR
Texture mirrors (flips) at joins over 1.0.
Definition: OgreTextureUnitState.h:131
Ogre::LayerBlendOperationEx
LayerBlendOperationEx
Expert list of valid texture blending operations, for use with TextureUnitState::setColourOperationEx...
Definition: OgreBlendMode.h:75
Ogre::TextureUnitState::mCompositorRefTexName
String mCompositorRefTexName
Definition: OgreTextureUnitState.h:1281
OgreIteratorWrappers.h
Ogre::TextureUnitState::mMinFilter
FilterOptions mMinFilter
Texture filtering - minification.
Definition: OgreTextureUnitState.h:1247
Ogre::TextureUnitState::getName
const String & getName(void) const
Get the name of the Texture Unit State.
Definition: OgreTextureUnitState.h:1167
Ogre::SceneBlendFactor
SceneBlendFactor
Blending factors for manually blending objects with the scene.
Definition: OgreBlendMode.h:234
Ogre::FilterOptions
FilterOptions
Filtering options for textures / mipmaps.
Definition: OgreCommon.h:100
Ogre::TextureUnitState::mCubic
bool mCubic
Definition: OgreTextureUnitState.h:1220
Ogre
Definition: OgreAndroidLogListener.h:34
Ogre::TextureUnitState::mAlphaBlendMode
LayerBlendModeEx mAlphaBlendMode
Definition: OgreTextureUnitState.h:1234
Ogre::TextureUnitState::setGamma
void setGamma(Real gamma)
Sets the gamma adjustment factor applied to this texture on loading the data.
Definition: OgreTextureUnitState.h:568
Ogre::TextureUnitState::TAM_BORDER
Texture coordinates outside the range [0.0, 1.0] are set to the border colour.
Definition: OgreTextureUnitState.h:135
Ogre::TextureUnitState::TextureTransformType
TextureTransformType
Useful enumeration when dealing with procedural transforms.
Definition: OgreTextureUnitState.h:112
Ogre::TextureUnitState::mContentType
ContentType mContentType
Content type of texture (normal loaded texture, auto-texture).
Definition: OgreTextureUnitState.h:1266
Ogre::TextureUnitState::mDesiredFormat
PixelFormat mDesiredFormat
Definition: OgreTextureUnitState.h:1223
Ogre::TextureUnitState::mFrames
vector< String >::type mFrames
Definition: OgreTextureUnitState.h:1274
Ogre::SharedPtr< Texture >
Ogre::TextureUnitState::EffectMap
multimap< TextureEffectType, TextureEffect >::type EffectMap
Texture effects in a multimap paired array.
Definition: OgreTextureUnitState.h:175
Ogre::vector
Definition: OgrePrerequisites.h:491
Ogre::TextureUnitState::mParent
Pass * mParent
Definition: OgreTextureUnitState.h:1288
Ogre::TextureUnitState::ET_PROJECTIVE_TEXTURE
Generate texture coords based on a frustum.
Definition: OgreTextureUnitState.h:76
Ogre::TextureUnitState::mIsDefaultFiltering
bool mIsDefaultFiltering
Definition: OgreTextureUnitState.h:1262
OgreHeaderPrefix.h
Ogre::TextureUnitState::TT_SCALE_V
Definition: OgreTextureUnitState.h:117
OgreBlendMode.h
Ogre::TextureUnitState::retryTextureLoad
void retryTextureLoad()
Tells the unit to retry loading the texture if it had failed to load.
Definition: OgreTextureUnitState.h:1046
Ogre::TextureUnitState::mEffects
EffectMap mEffects
Definition: OgreTextureUnitState.h:1278
Ogre::TextureUnitState::mMaxAniso
unsigned int mMaxAniso
Texture anisotropy.
Definition: OgreTextureUnitState.h:1257
Ogre::TextureUnitState::TextureCubeFace
TextureCubeFace
Enum identifying the frame indexes for faces of a cube map (not the composite 3D type.
Definition: OgreTextureUnitState.h:148
Ogre::Frustum
A frustum represents a pyramid, capped at the near and far end which is used to represent either a vi...
Definition: OgreFrustum.h:85
Ogre::TextureUnitState::mVScale
Real mVScale
Definition: OgreTextureUnitState.h:1242
Ogre::TextureUnitState::mCompareEnabled
bool mCompareEnabled
Definition: OgreTextureUnitState.h:1253
Ogre::TextureUnitState::TextureEffect::arg2
Real arg2
Definition: OgreTextureUnitState.h:163
Ogre::TextureUnitState::mBindingType
BindingType mBindingType
Binding type (fragment or vertex pipeline).
Definition: OgreTextureUnitState.h:1264
Ogre::LBS_TEXTURE
the colour derived from the texture assigned to this layer
Definition: OgreBlendMode.h:117
Ogre::TextureUnitState::TextureEffect::waveType
WaveformType waveType
Definition: OgreTextureUnitState.h:164
Ogre::TextureUnitState::mFramePtrs
vector< TexturePtr >::type mFramePtrs
Definition: OgreTextureUnitState.h:1275
Ogre::TextureUnitState::ContentType
ContentType
Enum identifying the type of content this texture unit contains.
Definition: OgreTextureUnitState.h:487
Ogre::TextureUnitState::mTexModMatrix
Matrix4 mTexModMatrix
Definition: OgreTextureUnitState.h:1244
Ogre::AllocatedObject
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
Definition: OgreMemoryAllocatedObject.h:58
Ogre::LayerBlendOperation
LayerBlendOperation
List of valid texture blending operations, for use with TextureUnitState::setColourOperation.
Definition: OgreBlendMode.h:57
Ogre::Radian
Wrapper class which indicates a given angle value is in Radians.
Definition: OgreMath.h:47
Ogre::multimap
Definition: OgrePrerequisites.h:547
Ogre::TextureUnitState::mIsDefaultAniso
bool mIsDefaultAniso
Definition: OgreTextureUnitState.h:1261
Ogre::TextureUnitState::TextureEffect::controller
Controller< Real > * controller
Definition: OgreTextureUnitState.h:169
Ogre::TextureUnitState::TextureEffect
Internal structure defining a texture effect.
Definition: OgreTextureUnitState.h:160
Ogre::FilterType
FilterType
Definition: OgreCommon.h:90

Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.