Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
The DDOVERLAYFX structure passes overlay information to the IDirectDrawSurface7::UpdateOverlay method.
typedef struct _DDOVERLAYFX {
DWORD dwSize;
DWORD dwAlphaEdgeBlendBitDepth;
DWORD dwAlphaEdgeBlend;
DWORD dwReserved;
DWORD dwAlphaDestConstBitDepth;
#if ...
union {
DWORD dwAlphaDestConst;
LPDIRECTDRAWSURFACE lpDDSAlphaDest;
} DUMMYUNIONNAMEN;
DWORD dwAlphaSrcConstBitDepth;
#else
union {
DWORD dwAlphaSrcConst;
LPDIRECTDRAWSURFACE lpDDSAlphaSrc;
} DUMMYUNIONNAMEN;
#endif
DDCOLORKEY dckDestColorkey;
DDCOLORKEY dckSrcColorkey;
DWORD dwDDFX;
DWORD dwFlags;
} DDOVERLAYFX;
dwSize
Size of the structure, in bytes. This member must be initialized before the structure is used.
dwAlphaEdgeBlendBitDepth
Bit depth used to specify the constant for an alpha edge blend.
dwAlphaEdgeBlend
Constant to use as the alpha for an edge blend.
dwReserved
Reserved
dwAlphaDestConstBitDepth
Bit depth used to specify the alpha constant for a destination.
DUMMYUNIONNAMEN
See Remarks.
DUMMYUNIONNAMEN.dwAlphaDestConst
Constant to use as the alpha channel for a destination.
DUMMYUNIONNAMEN.lpDDSAlphaDest
Address of a surface to use as the alpha channel for a destination.
dwAlphaSrcConstBitDepth
Bit depth used to specify the alpha constant for a source.
DUMMYUNIONNAMEN.dwAlphaSrcConst
Constant to use as the alpha channel for a source.
DUMMYUNIONNAMEN.lpDDSAlphaSrc
Address of a surface to use as the alpha channel for a source.
dckDestColorkey
Destination color key for the overlay.
dckSrcColorkey
Source color key for the overlay.
dwDDFX
The following flags that specify overlay effects.
If stretching, use arithmetic stretching along the y-axis for this overlay.
Mirror the overlay around the vertical axis.
Mirror the overlay around the horizontal axis.
dwFlags
Currently not used and must be set to 0.
The unions in this structure have been updated to work with compilers that do not support nameless unions. If your compiler does not support nameless unions, define the NONAMELESSUNION token before including the Ddraw.h header file.
Requirement | Value |
---|---|
Header | ddraw.h |
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today