D3DXColorModulate function
Mix two colors.
definition:
D3DXColor * D3DXColorModulate
D3DXColor * Pout,
Const d3dxcolor * PC1,
Const d3dxcolor * pc2
);
parameter:
pout
[IN, OUT] points to a result of returning a D3DxColor structure.
PC1
[in] points the source color value of the D3DxColor structure.
PC2
[in] points the source color value of the D3DxColor structure.
return value:
This function returns the result of the D3DxColor structure of two color mixed operations.
Description:
The return value is the same as the result of Pout. Just do this, let this function becomes the parameters of other functions.
This function calculation method is two red color multiplied, other green and blue, as follows:
Pout-> r = pc1-> r * pc2-> r;
information:
HEADER
D3DX9Math.h
Import Library
D3DX9.LIB
Minimum operation systems
WINDOWS 98
related functions:
D3DxColorlerp, D3DxColorNegative, D3DxColorscale