Microsoft DirectX 8.1 (C++) |
Sets the gamma correction ramp for the implicit swap chain.
void SetGammaRamp( DWORD Flags, CONST D3DGAMMARAMP* pRamp );
If a calibrator is not installed, the ramp will be passed directly to the device.
None.
There is always at least one swap chain (the implicit swap chain) for each device, because Microsoft® Direct3D® has one swap chain as a property of the device.
Because the gamma ramp is a property of the swap chain, the gamma ramp may be applied when the swap chain is windowed.
The gamma ramp takes effect immediately. No wait for VSYNC is performed.
If the device does not support gamma ramps in the swap chain's current presentation mode (full-screen or windowed), no error return is given. Applications can check the D3DCAPS2_FULLSCREENGAMMA and D3DCAPS2_CANCALIBRATEGAMMA capability bits in the Caps2 member of the D3DCAPS8 structure to determine the capabilities of the device and whether a calibrator is installed.
Header: Declared in D3d8.h.
Import Library: Use D3d8.lib.