C3DMesh::SetColorArg2

Top  Previous  Next

Syntax:

 

SetColorArg2(int  texStage, UINT  dwArg)

 

Purpose:

Sets the second color argument for the texture blending stage.

 

Parameters:

texStage - The texture stage (0-7) that this argument applies to.

dwArg - The argument to set.

 

Returned value(s):

None.

 

Application:

'PASS 2
pass2.SetColorArg1(0,D3DTA_DIFFUSE)
pass2.SetColorArg2(0,D3DTA_TEXTURE)
pass2.SetColorOperation(0,D3DTOP_MODULATE)

 

Class Hierarchy

C3DObject

-------C3DMesh

 

Additional Info:

Used for advanced multi texturing control. dwArg can be one of:

 

D3DTA_CURRENT - Use the result of the previous texture stage, for the 0th stage, it is the same as D3DTA_DIFFUSE

D3DTA_DIFFUSE  - The texture argument is the diffuse color interpolated from vertex components during Gouraud shading. If the vertex does not contain a diffuse color, the default color is 0xffffffff.

D3DTA_SPECULAR - The texture argument is the specular color interpolated from vertex components during Gouraud shading. If the vertex does not contain a specular color, the default color is 0xffffffff.

D3DTA_TEXTURE   - The texture argument is the texture color for this texture stage.

 

The default argument is D3DTA_TEXTURE.

 

See Also:

SetColorArg1