Table of Contents

Enum BlendFactor

Namespace
Sdl3Sharp.Video.Blending
Assembly
Sdl3Sharp.dll

Represents normalized blending factors used to multiply pixel components in blending operations

public enum BlendFactor

Fields

DestinationAlpha = 9

Destination-alpha factors

  • Red factordstA
  • Green factordstA
  • Blue factordstA
  • Alpha factordstA
DestinationColor = 7

Destination-color factors

  • Red factordstR
  • Green factordstG
  • Blue factordstB
  • Alpha factordstA
One = 2

All-one factors

  • Red factor1
  • Green factor1
  • Blue factor1
  • Alpha factor1
OneMinusDestinationAlpha = 10

One-minus-destination-alpha factors

  • Red factor1 - dstA
  • Green factor1 - dstA
  • Blue factor1 - dstA
  • Alpha factor1 - dstA
OneMinusDestinationColor = 8

One-minus-destination-color factors

  • Red factor1 - dstR
  • Green factor1 - dstG
  • Blue factor1 - dstB
  • Alpha factor1 - dstA
OneMinusSourceAlpha = 6

One-minus-source-alpha factors

  • Red factor1 - srcA
  • Green factor1 - srcA
  • Blue factor1 - srcA
  • Alpha factor1 - srcA
OneMinusSourceColor = 4

One-minus-source-color factors

  • Red factor1 - srcR
  • Green factor1 - srcG
  • Blue factor1 - srcB
  • Alpha factor1 - srcA
SourceAlpha = 5

Source-alpha factors

  • Red factorsrcA
  • Green factorsrcA
  • Blue factorsrcA
  • Alpha factorsrcA
SourceColor = 3

Source-color factors

  • Red factorsrcR
  • Green factorsrcG
  • Blue factorsrcB
  • Alpha factorsrcA
Zero = 1

All-zero factors

  • Red factor0
  • Green factor0
  • Blue factor0
  • Alpha factor0

Remarks

In blending operations, the pixel components of the source and destination pixels are multiplied with blending factors before they get combined using a blend operation.