42 unsigned int mapChannel)
43 : m_mapChannel(mapChannel),
45 m_combineMode(combineMode)
50 : m_mapChannel(texturePass.m_mapChannel),
51 m_texture(texturePass.m_texture),
52 m_combineMode(texturePass.m_combineMode)
58 unsigned int m_mapChannel;
71 m_mapChannel = mapChannel;
101 m_combineMode = combineMode;
146 unsigned int m_texturesPassNumber;
154 inline void setType(
int type) { m_type = type; }
176 m_blendMode = blendMode;
195 inline void setOpacity(
float opacity) { m_opacity = opacity; }
212 m_customValue = customValue;
247 m_customColor = customColor;
296 void allocTexturesPass(
unsigned int size);
301 void clearTexturesPass(
void);
310 unsigned int mapChannel);
318 return m_texturesPassNumber;
327 return m_texturesPass[id];
void setTexture(Texture *texture)
Sets the texture to use.
Definition: Material.h:78
void setCustomColor(const Vector3 &customColor)
Sets the custom color.
Definition: Material.h:245
Texture * getTexture(void)
Returns the texture that is used.
Definition: Material.h:90
Vector3 getCustomColor(void) const
Returns the current custom color.
Definition: Material.h:290
void setType(int type)
Sets the type of the material.
Definition: Material.h:154
BLENDING_MODES
Definition: RenderingContext.h:32
void setOpacity(float opacity)
Sets the opacity value.
Definition: Material.h:195
void setCombineMode(TEX_COMBINE_MODES combineMode)
Sets the combine mode when using multiple passes for one material.
Definition: Material.h:99
TEX_COMBINE_MODES getCombineMode(void)
Returns the combine mode.
Definition: Material.h:109
float getShininess(void)
Returns the current shininess.
Definition: Material.h:260
unsigned int getMapChannel(void)
Returns the map channel.
Definition: Material.h:84
The Material class contains the implementation of a material used by 3D meshes for rendering differen...
Definition: Material.h:118
void setEmit(const Vector3 &emit)
Sets the emit color.
Definition: Material.h:237
void setFXRef(FXRef *FXRef)
Definition: Material.h:163
FXRef * getZFXRef(void)
Definition: Material.h:166
float getOpacity(void)
Returns the current opacity.
Definition: Material.h:254
Vector3 getEmit(void) const
Returns the current emit color.
Definition: Material.h:272
void setDiffuse(const Vector3 &diffuse)
Sets the diffuse color.
Definition: Material.h:221
Definition: FXManager.h:32
TexturePass(Texture *texture, TEX_COMBINE_MODES combineMode, unsigned int mapChannel)
Definition: Material.h:41
void setMapChannel(unsigned int mapChannel)
Sets the map channel.
Definition: Material.h:69
void setCustomValue(float customValue)
Sets the custom value.
Definition: Material.h:210
int getType(void)
Returns the type of the material.
Definition: Material.h:160
void setShininess(float shininess)
Sets the shininess value.
Definition: Material.h:204
TexturePass(const TexturePass &texturePass)
Definition: Material.h:49
Vector3 getSpecular(void) const
Returns the current specular color.
Definition: Material.h:284
TexturePass * getTexturePass(unsigned int id)
Returns a texture pass by ID from the internal array.
Definition: Material.h:325
void setSpecular(const Vector3 &specular)
Sets the specular color.
Definition: Material.h:229
void setZFXRef(FXRef *ZFXRef)
Definition: Material.h:164
float getCustomValue(void)
Returns the current custom value.
Definition: Material.h:266
TEX_COMBINE_MODES
Definition: RenderingContext.h:102
The texture pass class implements some basic primitives to manage and use multi-texture materials...
Definition: Material.h:38
FXRef * getFXRef(void)
Definition: Material.h:165
unsigned int getTexturesPassNumber(void)
Returns the number of texture passes.
Definition: Material.h:316
Vector3 getDiffuse(void) const
Returns the current diffuse color.
Definition: Material.h:278
void setBlendMode(BLENDING_MODES blendMode)
Changes the current blend mode.
Definition: Material.h:174
BLENDING_MODES getBlendMode(void)
Returns the current blend mode.
Definition: Material.h:185