Skip to content

enum SF::BlendMode::Equation #

Enumeration of the blending equations

The equations are mapped directly to their OpenGL equivalents, specified by gl_blend_equation() or gl_blend_equation_separate().

Members#

Add = 0#

Pixel = Src * SrcFactor + Dst * DstFactor

Subtract = 1#

Pixel = Src * SrcFactor - Dst * DstFactor

ReverseSubtract = 2#

Pixel = Dst * DstFactor - Src * SrcFactor

Min = 3#

Pixel = min(Dst, Src)

Max = 4#

Pixel = max(Dst, Src)

Methods#

#add?#

View source

#max?#

View source

#min?#

View source

#reverse_subtract?#

View source

#subtract?#

View source