GPUTextureComponentSwizzle
public final class GPUTextureComponentSwizzle
Defines how the color components of a texture are remapped for a texture view.
Summary
Public constructors |
|---|
GPUTextureComponentSwizzle(int r, int g, int b, int a) |
Public methods |
|
|---|---|
final int |
getA()The source component for the view's alpha channel. |
final int |
getB()The source component for the view's blue channel. |
final int |
getG()The source component for the view's green channel. |
final int |
getR()The source component for the view's red channel. |
final void |
setA(int a)The source component for the view's alpha channel. |
final void |
setB(int b)The source component for the view's blue channel. |
final void |
setG(int g)The source component for the view's green channel. |
final void |
setR(int r)The source component for the view's red channel. |
Public constructors
GPUTextureComponentSwizzle
public GPUTextureComponentSwizzle(int r, int g, int b, int a)
Public methods
getA
public final int getA()
The source component for the view's alpha channel.
getB
public final int getB()
The source component for the view's blue channel.
getG
public final int getG()
The source component for the view's green channel.
getR
public final int getR()
The source component for the view's red channel.
setA
public final void setA(int a)
The source component for the view's alpha channel.
setB
public final void setB(int b)
The source component for the view's blue channel.
setG
public final void setG(int g)
The source component for the view's green channel.
setR
public final void setR(int r)
The source component for the view's red channel.