DoTextureMapDiffuseColorSwitch(3D)

NAME
DoTextureMapDiffuseColorSwitch - Create a primitive attribute object for enabling or disabling texture mapping of diffuse color

SYNOPSIS
C:
DtObject DoTextureMapDiffuseColorSwitch(switchvalue)
DtSwitch switchvalue;

FORTRAN:
INTEGER*4 DOTMDS(SWVAL)
INTEGER*4 SWVAL

DESCRIPTION

DoTextureMapDiffuseColorSwitch creates a primitive attribute object that enables or disables texture mapping of diffuse color. The switchvalue parameter is used to specify whether or not the diffuse color of subsequent objects can be modified by texture mapping.

DcOff <DCOFF>
    The primitive object will ignore any diffuse color texture maps that have been defined with DoTextureMapDiffuseColor <DOTMDC>.

DcOn <DCON>
    The diffuse color will be mapped as specified by the DoTextureMapDiffuseColor attribute whenever possible. Note that the DoDiffuseSwitch primitive attribute must be also be DcOn <DCON>.

DEFAULTS
The default for DoTextureMapDiffuseColorSwitch is DcOff <DCOFF>.

SEE ALSO
DoDiffuseColor(3D), DoDiffuseSwitch(3D), DoTextureMapDiffuseColor(3D)