Skip to content

enum SF::BlendMode::Factor #

Enumeration of the blending factors

The factors are mapped directly to their OpenGL equivalents, specified by gl_blend_func() or gl_blend_func_separate().

Members#

Zero = 0#

(0, 0, 0, 0)

One = 1#

(1, 1, 1, 1)

SrcColor = 2#

(src.r, src.g, src.b, src.a)

OneMinusSrcColor = 3#

(1, 1, 1, 1) - (src.r, src.g, src.b, src.a)

DstColor = 4#

(dst.r, dst.g, dst.b, dst.a)

OneMinusDstColor = 5#

(1, 1, 1, 1) - (dst.r, dst.g, dst.b, dst.a)

SrcAlpha = 6#

(src.a, src.a, src.a, src.a)

OneMinusSrcAlpha = 7#

(1, 1, 1, 1) - (src.a, src.a, src.a, src.a)

DstAlpha = 8#

(dst.a, dst.a, dst.a, dst.a)

OneMinusDstAlpha = 9#

(1, 1, 1, 1) - (dst.a, dst.a, dst.a, dst.a)

Methods#

#dst_alpha?#

View source

#dst_color?#

View source

#one?#

View source

#one_minus_dst_alpha?#

View source

#one_minus_dst_color?#

View source

#one_minus_src_alpha?#

View source

#one_minus_src_color?#

View source

#src_alpha?#

View source

#src_color?#

View source

#zero?#

View source