kmConvertFogDensity

Converts fog coefficient.


KMSTATUS KMAPI
kmConvertFogDensity(
IN KMFLOAT fFogDensity,
OUT KMDWORD *dwFogDensity
)

Description:

This function coverts the floating point value to the 2-byte fog coefficient for use in setting the PowerVR hardware register.
The fog coefficient in floating point value obtained in the kmGenerateFogTable function is used by the kmSetFogDensity function to set the hardware.

Parameters:

fFogDensity(input)
This parameter specifies the fog coefficient in floating point value obtained in the kmGenerateFogTable function.

*dwFogDensity(output)
This parameter returns the 2-byte value when the kmSetFogDensity function is setting the hardware.

Return values:

ValueExplanation
KMSTATUS_SUCCESS Success

  kmConvertFogDensity