D3DXCOLORSCALE function

xiaoxiao2021-03-06  62

D3DXCOLORSCALE function

The color value is zoomed in to zoom in or out of scale factor.

definition:

D3DXColor * D3DXCOLORSCALE

D3DXColor * Pout,

Const d3dxcolor * pc,

Float S

);

parameter:

pout

[IN, OUT] points to a result of returning a D3DxColor structure.

PC

[in] points to the structure of a source color D3DxColor.

s

The proportional coefficient. This value size is not limited, if set to 1, return the original color value.

return value:

This function returns a color value that points to the multiplication of the D3DxColor structure.

Description:

This function return value is the same as the POUT parameter. This function can be a parameter of other functions by return values. This function is returned by each color component by the coefficient, as shown in the following example:

Pout-> r = pc-> r * s;

Function information:

HEADER

D3DX9Math.h

Import Library

D3DX9.LIB

Minimum operation systems

WINDOWS 98

related functions:

D3DXColorlerp, D3DxColorModulate, D3DxColorNegative

转载请注明原文地址:https://www.9cbs.com/read-111431.html

New Post(0)