Masks

The RGBA-Mask are the bitmasks used to extract that color from a pixel. It is used to e.g. define the background of a newly created Surface. Using zeros for the RGB-Masks sets a default value, based on the depth But using zero for the Aalpha-Mask results in an Alpha-Mask of 0. By default Surfaces with an Alpha-Mask are set up for blending. You can change the blend mode with Surface.setBlendMode.

Constructors

this
this(uint red, uint green, uint blue, uint alpha)

CTor

Members

Static variables

Zero
Masks Zero;

The RGBA-Masks are zero. Using zeros for the RGB-Masks sets a default value, based on the given depth. Using zero for the Alpha-Mask results in an Alpha-Mask of 0.

Variables

alpha
uint alpha;

the alpha mask, default is 0x000000ff

alpha
uint alpha;

the alpha mask, default is 0xff000000

blue
uint blue;

the blue mask, default is 0x00ff0000

blue
uint blue;

the blue mask, default is 0x0000ff00

green
uint green;

the green mask, default is 0x0000ff00

green
uint green;

the green mask, default is 0x00ff0000

red
uint red;

the red mask, default is 0x000000ff

red
uint red;

the red mask, default is 0xff000000

Meta