enum SF::BlendMode::Equation

Overview

Enumeration of the blending equations

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

Defined in:

graphics/obj.cr

Enum Members

Add = 0

Pixel = Src * SrcFactor + Dst * DstFactor

Subtract = 1

Pixel = Src * SrcFactor - Dst * DstFactor

ReverseSubtract = 2

Pixel = Dst * DstFactor - Src * SrcFactor

Instance Method Summary

Instance Method Detail

def add? #

[View source]
def reverse_subtract? #

[View source]
def subtract? #

[View source]