C
#define SetAlpha(alpha) (_alpha = alpha)
Overview
This macro sets the alpha value. Enabling this feature requires the macros USE_ALPHABLEND_LITE defined in the GraphicsConfig.h. See USE_ALPHABLEND_LITE for information on supported primitive rendering functions.
Input Parameters
Input Parameters |
Description |
alpha |
Defines the alpha blending percentage of the new color set by SetColor() to the existing pixel color. Valid values for alpha for pure primitive layer implementation are:
|
Returns
None
Side Effects
none
Example
SetAlpha(50); // set alpha level SetColor(BLUE); // set color to use Bar(5,10,30,50); // render an alpha blended Bar