Microsoft DirectX 8.1 (Visual Basic)

CONST_D3DBLENDOP

Defines the supported blend operations.

Enum CONST_D3DBLENDOP
    D3DBLENDOP_ADD         = 1
    D3DBLENDOP_SUBTRACT    = 2
    D3DBLENDOP_REVSUBTRACT = 3
    D3DBLENDOP_MIN         = 4
    D3DBLENDOP_MAX         = 5
End Enum

Constants

D3DBLENDOP_ADD
Adds the destination to the source.

Result = Source + Destination

D3DBLENDOP_SUBTRACT
Subtract the destination subtracted from the source.

Result = Source - Destination

D3DBLENDOP_REVSUBTRACT
Subtract the source from the destination.

Result = Destination - Source

D3DBLENDOP_MIN
Return the minimum of the source and destination.

Result = MIN(Source, Destination)

D3DBLENDOP_MAX
Return the maximum of the source and destination.

Result = MAX(Source, Destination)

Remarks

This enumerated type defines values used by the D3DRS_BLENDOP render state.

See Also

D3DCAPS8, CONST_D3DRENDERSTATETYPE