mudbox::TextureMixer Class Reference

#include <material.h>

Inheritance diagram for mudbox::TextureMixer:

Inheritance graph
[legend]
List of all members.

Detailed Description

Represents a texture mixer.

Public Member Functions

virtual const mudbox::ClassDesc *  RuntimeClass (void) const
virtual unsigned int  BlendModeCount (void) const
  Returns the number of the blending modes.
virtual QString  BlendModeName (int i) const
  Returns the display 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)
  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.

Static Public Member Functions

const mudbox::ClassDesc *  StaticClass (void)
mudbox::Node *  CreateInstances (unsigned int iCount=1)

Protected Member Functions

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

Constructor & Destructor Documentation

mudbox::TextureMixer::TextureMixer (  void   )  [protected]
 

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

            TextureMixer *myTextureMixer = CreateInstance<TextureMixer>();

Member Function Documentation

virtual const mudbox::ClassDesc* mudbox::TextureMixer::RuntimeClass (  void   )  const [inline, virtual]
 

Reimplemented from mudbox::Node.

00215 :
const mudbox::ClassDesc* mudbox::TextureMixer::StaticClass (  void   )  [static]
 

Reimplemented from mudbox::Node.

mudbox::Node* mudbox::TextureMixer::CreateInstances (  unsigned int  iCount = 1  )  [static]
 

Reimplemented from mudbox::Node.

virtual unsigned int mudbox::TextureMixer::BlendModeCount (  void   )  const [virtual]
 

Returns the number of the blending modes.

virtual QString mudbox::TextureMixer::BlendModeName (  int  i  )  const [virtual]
 

Returns the display name of the specified blending mode.

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

Set number of layers to blend.

Parameters:
iLayerCount  [in] Number of layers that should be blended in a mix operation.
virtual void mudbox::TextureMixer::SetLayerData (  unsigned int  iLayerIndex,
int  iTextureID,
float  fTransparency
)  [virtual]
 

Set mix the data for layer at iLayerIndex.

Parameters:
iLayerIndex  [in] The index of the layer to be altered
iTextureID  [in] The ID of the texture for this layer
fTransparency  [in] The transparency of the layer
virtual void mudbox::TextureMixer::Mix (  class Texture *  d,
unsigned int  iWidth,
unsigned int  iHeight,
enum Image::Format  eFormat
)  [virtual]
 

Mix the layers setup with the SetLayerData method.

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

mudbox::TextureMixer mudbox::TextureMixer mudbox::TextureMixer mudbox::TextureMixer mudbox::TextureMixer mudbox::TextureMixer mudbox::TextureMixer mudbox::TextureMixer mudbox::TextureMixer mudbox::TextureMixer
mudbox::TextureMixer mudbox::TextureMixer mudbox::TextureMixer mudbox::TextureMixer mudbox::TextureMixer mudbox::TextureMixer mudbox::TextureMixer mudbox::TextureMixer mudbox::TextureMixer mudbox::TextureMixer