BlendFactor


public final class BlendFactor

Defines the factors used in blend operations.

Summary

Public methods

static final @NonNull String
toString(int value)

Constants

Constant

public static final int Constant = 12

The blend factor is the blend constant (Rc, Gc, Bc, Ac).

Dst

public static final int Dst = 7

The blend factor is (Rd, Gd, Bd, Ad).

DstAlpha

public static final int DstAlpha = 9

The blend factor is (Ad, Ad, Ad, Ad).

One

public static final int One = 2

The blend factor is (1, 1, 1, 1).

OneMinusConstant

public static final int OneMinusConstant = 13

The blend factor is (1-Rc, 1-Gc, 1-Bc, 1-Ac).

OneMinusDst

public static final int OneMinusDst = 8

The blend factor is (1-Rd, 1-Gd, 1-Bd, 1-Ad).

OneMinusDstAlpha

public static final int OneMinusDstAlpha = 10

The blend factor is (1-Ad, 1-Ad, 1-Ad, 1-Ad).

OneMinusSrc

public static final int OneMinusSrc = 4

The blend factor is (1-Rs, 1-Gs, 1-Bs, 1-As).

OneMinusSrc1

public static final int OneMinusSrc1 = 15

The blend factor is (1-Rs1, 1-Gs1, 1-Bs1, 1-As1). Requires @see FeatureName.DualSourceBlending.

OneMinusSrc1Alpha

public static final int OneMinusSrc1Alpha = 17

The blend factor is (1-As1, 1-As1, 1-As1, 1-As1). Requires @see FeatureName.DualSourceBlending.

OneMinusSrcAlpha

public static final int OneMinusSrcAlpha = 6

The blend factor is (1-As, 1-As, 1-As, 1-As).

Src

public static final int Src = 3

The blend factor is (Rs, Gs, Bs, As).

Src1

public static final int Src1 = 14

The blend factor is the second source color (Rs1, Gs1, Bs1, As1). Requires

Src1Alpha

public static final int Src1Alpha = 16

The blend factor is (As1, As1, As1, As1). Requires @see FeatureName.DualSourceBlending.

SrcAlpha

public static final int SrcAlpha = 5

The blend factor is (As, As, As, As).

SrcAlphaSaturated

public static final int SrcAlphaSaturated = 11

The blend factor is (f, f, f, 1) where f = min(As, 1 - Ad).

Undefined

public static final int Undefined = 0

Indicates that no blend factor is specified.

Zero

public static final int Zero = 1

The blend factor is (0, 0, 0, 0).

Public methods

toString

Added in 1.0.0-alpha06
public static final @NonNull String toString(int value)