enum SF::BlendMode::Factor

Overview

Enumeration of the blending factors

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

Defined in:

graphics/obj.cr

Enum 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)

Instance Method Summary

Instance Method Detail

def dst_alpha? #

[View source]
def dst_color? #

[View source]
def one? #

[View source]
def one_minus_dst_alpha? #

[View source]
def one_minus_dst_color? #

[View source]
def one_minus_src_alpha? #

[View source]
def one_minus_src_color? #

[View source]
def src_alpha? #

[View source]
def src_color? #

[View source]
def zero? #

[View source]