C3DMesh::SetColorOperation

Top  Previous  Next

Syntax:

 

SetColorOperation(int  texStage, UINT  dwArg)

 

Purpose:

Sets the color operation for the texture stage.

 

Parameters:

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

dwArg - The operation 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:

The default operation for the texture is D3DTOP_MODULATE.

 

See Also:

Texture Blending Constants