Microsoft DirectX 9.0

DDOVERLAYFX Structure

This structure is used to pass override information to the UpdateOverlay method.

typedef struct _DDOVERLAYFX{
  DWORD    dwSize;
  DWORD    dwAlphaEdgeBlendBitDepth;
  DWORD    dwAlphaEdgeBlend;
  DWORD    dwReserved;
  DWORD    dwAlphaDestConstBitDepth;
  union
  {
    DWORD  dwAlphaDestConst;
    LPDIRECTDRAWSURFACE  lpDDSAlphaDest;
  };
  DWORD    dwAlphaSrcConstBitDepth;
  union
  {
    DWORD  dwAlphaSrcConst;
    LPDIRECTDRAWSURFACE     lpDDSAlphaSrc;
  };
  DDCOLORKEY    dckDestColorkey;
  DDCOLORKEY    dckSrcColorkey;
  DWORD    dwDDFX;
  DWORD    dwFlags;
} DDOVERLAYFX,FAR *LPDDOVERLAYFX;

Members

dwSize

Size of structure. Must be initialized before use.

dwAlphaEdgeBlendBitDepth

Bit depth used to specify constant for alpha edge blend.

dwAlphaEdgeBlend

Constant to use as alpha for edge blend.

dwReserved

Reserved.

dwAlphaDestConstBitDepth

Bit depth used to specify alpha constant for destination.

dwAlphaDestConst

Constant to use as alpha channel for destination.

lpDDSAlphaDest

Pointer to a surface to use as alpha channel for destination.

dwAlphaSrcConstBitDepth

Bit depth used to specify alpha constant for source.

dwAlphaSrcConst

Constant to use as alpha channel for source.

lpDDSAlphaSrc

Pointer to a surface to use as alpha channel for source.

dckDestColorkey

DestColorkey override.

dckSrcColorkey

DestColorkey override.

dwDDFX

Overlay FX flags.

Flag Description
DDOVERFX_ARITHSTRETCHY If stretching, use arithmetic stretching along the y-axis for this overlay.
DDOVERFX_MIRRORLEFTRIGHT Mirror the overlay across the vertical axis.
DDOVERFX_MIRRORUPDOWN Mirror the overlay across the horizontal axis.

dwFlags

Flags.

See Also