enum BlendMode { Blend_None = 0, Blend_Normal = 1, Blend_Layer = 2, Blend_Multiply = 3, Blend_Screen = 4, Blend_Lighten = 5, Blend_Darken = 6, Blend_Difference = 7, Blend_Add = 8, Blend_Subtract = 9, Blend_Invert = 10, Blend_Alpha = 11, Blend_Erase = 12, Blend_Overlay = 13, Blend_HardLight = 14, Blend_Overwrite, Blend_OverwriteAll, Blend_FullAdditive, Blend_FilterBlend, Blend_Ignore, Blend_Count, Blend_Invalid };
Blend modes supported by the renderer, these modes map directly to the blending options provided by Flash.
Members |
Description |
Blend_None = 0 |
The blend mode as set on the parent node. |
Blend_Normal = 1 |
The display object appears in front of the background. //The regular alpha blending mode. |
Blend_Layer = 2 |
Creates a transparency group for the display object. |
Blend_Multiply = 3 |
Multiplies the values of color components of the display object with those of the background color, resulting in darker colors. |
Blend_Screen = 4 |
Multiplies the complement (inverse) of the display object color by the complement of the background color, resulting in a bleaching effect. |
Blend_Lighten = 5 |
Selects the lighter of the color components of the display object and the background (the colors with the larger values). |
Blend_Darken = 6 |
Selects the darker of the colors of the display object and the background color. |
Blend_Difference = 7 |
Compares the colors of the display object with the background color and subtracts the darker of the values of the two color components from the lighter value. |
Blend_Add = 8 |
The values of the colors of the display object is added to the colors of its background. |
Blend_Subtract = 9 |
Subtracts the values of the color components in the display object from the values of the background color. |
Blend_Invert = 10 |
Inverts the background. |
Blend_Alpha = 11 |
The alpha value of each pixel of the display object is applied to the background. |
Blend_Erase = 12 |
Erases the background based on the alpha value of the display object. |
Blend_Overlay = 13 |
Adjusts the color of each pixel based on the darkness of the background. |
Blend_HardLight = 14 |
Adjust the color of each pixel based on the darkness of the display object. |
Blend_Overwrite |
No blending occurs; a straight bit (RGB). |
Blend_OverwriteAll |
No blending occurs; a straight blit (RGBA - must use sourceAc=true). |
Blend_FullAdditive |
Adds both colors (non-multiplied) and alphas. |
Blend_FilterBlend |
Used when blending filter passes together. |
Blend_Ignore |
Used to completely ignore the incoming fragment (alpha/erase layer errors). |
Blend_Count |
The number of blend modes applied on the renderer. |
Blend_Invalid |
Used as a special value to end BlendPrimitives, not an actual blend mode (not counted in Blend_Count). |
Render_States.h