TextureMixer Class Reference

This reference page is linked to from the following overview topics: Textures.



Detailed Description

Represents a texture mixer.

Definition at line 249 of file material.h.

#include <material.h>

Inheritance diagram for TextureMixer:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual unsigned int  BlendModeCount (void) const
  Returns the number of the blending modes.
virtual QString  BlendModeDisplayName (int iBlendMode) const
  Returns the display name of the specified blending mode.
virtual QString  BlendModeName (int iBlendMode) const
  Returns the programmatic name of the specified blending mode.
virtual void  SetBlendMode (int iBlendMode)
virtual void  SetLayerCount (unsigned int iLayerCount)
  Set number of layers to blend.
virtual void  SetLayerData (unsigned int iLayerIndex, int iTextureID, float fTransparency, int iMaskID=0, float fMaskTransparency=1.0f)
  Set mix the data for layer at iLayerIndex.
virtual void  Mix (class Texture *d, unsigned int iWidth, unsigned int iHeight, enum Image::Format eFormat)
  Mix the layers setup with the SetLayerData method.

Protected Member Functions

  TextureMixer (void)
  Constructor.

Constructor & Destructor Documentation

TextureMixer ( void  ) [protected]

Constructor.

Do not use it directly; Use CreateInstance() instead.

        TextureMixer *myTextureMixer = CreateInstance<TextureMixer>();

Member Function Documentation

virtual unsigned int BlendModeCount ( void  ) const [virtual]

Returns the number of the blending modes.

virtual QString BlendModeDisplayName ( int  iBlendMode ) const [virtual]

Returns the display name of the specified blending mode.

Parameters:
[in] iBlendMode Index of the blending mode
virtual QString BlendModeName ( int  iBlendMode ) const [virtual]

Returns the programmatic name of the specified blending mode.

Parameters:
[in] iBlendMode Index of the blending mode
virtual void SetBlendMode ( int  iBlendMode ) [virtual]
virtual void SetLayerCount ( unsigned int  iLayerCount ) [virtual]

Set number of layers to blend.

Parameters:
[in] iLayerCount Number of layers that should be blended in a mix operation.
virtual void SetLayerData ( unsigned int  iLayerIndex,
int  iTextureID,
float  fTransparency,
int  iMaskID = 0,
float  fMaskTransparency = 1.0f 
) [virtual]

Set mix the data for layer at iLayerIndex.

Parameters:
[in] iLayerIndex The index of the layer to be altered
[in] iTextureID The ID of the texture for this layer
[in] fTransparency The transparency of the layer
[in] iMaskID The ID of the texture's mask, if any
[in] fMaskTransparency The transparency of the layer mask
virtual void Mix ( class Texture d,
unsigned int  iWidth,
unsigned int  iHeight,
enum Image::Format  eFormat 
) [virtual]

Mix the layers setup with the SetLayerData method.

Parameters:
[out] d A pointer to an existing Texture. It will be overridden with the result of the mixing.
[in] iWidth The width of the texture to be mixed
[in] iHeight The height of the texture to be mixed
[in] eFormat The image format desired for the result

The documentation for this class was generated from the following file:

TextureMixer TextureMixer TextureMixer TextureMixer TextureMixer TextureMixer TextureMixer TextureMixer TextureMixer TextureMixer
TextureMixer TextureMixer TextureMixer TextureMixer TextureMixer TextureMixer TextureMixer TextureMixer TextureMixer TextureMixer