28 #ifndef __FixedFuncState_H__
29 #define __FixedFuncState_H__
116 #define LIGHT_TYPES_COUNT Light::LT_SPOTLIGHT + 1 // better to update the LightTypes enum
const bool operator<(const FixedFuncState &other) const
const TextureLayerStateList & getTextureLayerStateList() const
VertexElementType mVertexElementType
void setVertexBufferElementList(const VertexBufferElementList &val)
const bool operator<(const VertexBufferDeclaration &other) const
void addOnetoLightTypeCount(const Light::LightTypes type)
vector< TextureLayerState >::type TextureLayerStateList
TextureLayerStateList mTextureLayerStateList
Storage of texture layer states.
LightTypes
Defines the type of light.
void setLightingEnabled(bool enabled)
Sets whether or not dynamic lighting is enabled.
GeneralFixedFuncState & getGeneralFixedFuncState()
TexCoordCalcMethod
Enum describing the ways to generate texture coordinates.
FogMode getFogMode(void) const
Returns the fog mode for this pass.
unsigned short numberOfTexcoord() const
unsigned short getVertexElementIndex() const
VertexElementSemantic
Vertex element semantics, used to identify the meaning of vertex buffer contents. ...
bool mLightingEnabled
Lighting enabled?
FixedFuncState()
Default constructor.
VertexElementSemantic mVertexElementSemantic
const uint8 getLightTypeCount(const Light::LightTypes type) const
CompareFunction mAlphaRejectFunc
GeneralFixedFuncState mGeneralFixedFuncState
const uint8 getTotalNumberOfLights() const
void setLayerBlendModeEx(LayerBlendModeEx val)
VertexElementType getVertexElementType() const
void setLightTypeCount(const Light::LightTypes type, const uint8 val)
void setVertexElementIndex(unsigned short val)
ShadeOptions
Light shading modes.
void setVertexElementSemantic(VertexElementSemantic val)
void setTexCoordCalcMethod(TexCoordCalcMethod val)
vector< VertexBufferElement >::type VertexBufferElementList
Class defining a fixed function state.
uint8 mLightFromTypeCount[LIGHT_TYPES_COUNT]
ShadeOptions mShadeOptions
Shading options.
const VertexBufferElementList & getVertexBufferElementList() const
TextureType getTextureType() const
void setVertexElementType(VertexElementType val)
void setTextureType(TextureType val)
~VertexBufferDeclaration()
VertexElementType
Vertex element type, used to identify the base types of the vertex contents.
uint8 getCoordIndex() const
VertexBufferDeclaration()
void setShadingMode(ShadeOptions mode)
Sets the type of light shading required.
VertexElementSemantic getVertexElementSemantic() const
ShadeOptions getShadingMode(void) const
Returns the type of light shading to be used.
#define LIGHT_TYPES_COUNT
bool mNormaliseNormals
Normalisation.
TexCoordCalcMethod mTexCoordCalcMethod
void setFogMode(FogMode mode)
Sets the fogging mode applied to this pass.
unsigned short mVertexElementIndex
void resetLightTypeCounts()
unsigned short countVertexElementSemantic(VertexElementSemantic semantic) const
TextureType
Enum identifying the texture type.
void setTextureLayerStateList(const TextureLayerStateList &val)
uint8 getTexcoordCount() const
void setNormaliseNormals(bool normalise)
If set to true, this forces normals to be normalised dynamically by the hardware for this pass...
TexCoordCalcMethod getTexCoordCalcMethod() const
GeneralFixedFuncState()
Default constructor.
void setCoordIndex(uint8 val)
void setAlphaRejectFunction(CompareFunction func)
Sets the alpha reject function.
VertexBufferElementList mVertexBufferElementList
CompareFunction getAlphaRejectFunction(void) const
Gets the alpha reject function.
bool getLightingEnabled(void) const
Returns whether or not dynamic lighting is enabled.
CompareFunction
Comparison functions used for the depth/stencil buffer operations and others.
Class which manages blending of both colour and alpha components.
LayerBlendModeEx getLayerBlendModeEx() const
LayerBlendModeEx mLayerBlendOperationEx
bool getNormaliseNormals(void) const
Returns true if this pass has auto-normalisation of normals set.