ComponentSwizzle


public final class ComponentSwizzle


Defines how component values are remapped when sampling a texture.

Summary

Constants

static final int
A = 6

Take its value from the alpha channel of the texture.

static final int
B = 5

Take its value from the blue channel of the texture.

static final int
G = 4

Take its value from the green channel of the texture.

static final int
One = 2

Force its value to 1.

static final int
R = 3

Take its value from the red channel of the texture.

static final int

Indicates no value is passed for this argument.

static final int
Zero = 1

Force its value to 0.

Public methods

static final @NonNull String
toString(int value)

Constants

A

public static final int A = 6

Take its value from the alpha channel of the texture.

B

public static final int B = 5

Take its value from the blue channel of the texture.

G

public static final int G = 4

Take its value from the green channel of the texture.

One

public static final int One = 2

Force its value to 1.

R

public static final int R = 3

Take its value from the red channel of the texture.

Undefined

public static final int Undefined = 0

Indicates no value is passed for this argument.

Zero

public static final int Zero = 1

Force its value to 0.

Public methods

toString

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