|
|
|
|
attributes_t
Declaration
typedef struct {
color_t color;
color_t backColor;
color_t aaColor[5];
int backMode;
color_t bdrBright;
color_t bdrDark;
point_t CP;
int writeMode;
int penStyle;
int penHeight;
int penWidth;
pattern_t penPat[8];
pixpattern_t penPixPat[8];
int cntPenPat;
int cntPenPixPat;
color_t penPixPatTrans;
int lineStyle;
uint lineStipple;
uint stippleCount;
int polyType;
int fontBlendMode;
int srcBlendFunc;
int dstBlendFunc;
uchar alphaValue;
ulong planeMask;
int ditherMode;
text_settings_t ts;
} attributes_t
Prototype In
mgraph.h
Description
Structure representing the current MGL rendering attributes. This structure groups all of the MGL rendering state variables, and can be used to save and restore the entire MGL rendering state for any device context as a single unit.
Note: You should only save and restore the state to the same device context!
Members
color |
Current foreground color |
backColor |
Current background color |
aaColor |
Palette for font anti-aliasing. Values corrospond to 25/75, 50/50, and 75/25 percent blend of background and foreground colors respectively. |
backMode |
Background color mode for monochrome bitmap expansion. Will be either MGL_TRANSPARENT_BACKGROUND or MGL_OPAQUE_BACKGROUND, and determins how background pixels are drawn for monochrome bitmap rendering functions (including text). |
CP |
Current Position coordinate |
writeMode |
Current write mode. Will be one of the values defined by the MGL_writeModeType enumeration. |
penStyle |
Current pen fill style. Will be one of values defined by the MGL_penStyleType enumeration. |
penHeight |
Current pen height |
penWidth |
Current pen width |
penPat |
Array of 8 pen 8x8 monochrome bitmap pattern |
penPixPat |
Array of 8 pen 8x8 color pixmap pattern |
cntPenPat |
Current pen 8x8 monochrome bitmap pattern index (0-7) |
cntPenPixPat |
Current pen 8x8 color pixmap pattern index (0-7) |
penPixPatTrans |
Current transparent color for pixmap patterns |
lineStyle |
Current line style. Will be one of the values defined by the MGL_lineStyleType enumeration. |
lineStipple |
Current 16-bit line stipple mask. |
stippleCount |
Current line stipple counter. |
polyType |
Current polygon rasterizing type. Will be one of the values defined by the MGL_polygonType enumeration. |
fontBlendMode |
Type of blending used for anti-aliased fonts. Will be a value from the enumeration MGL_fontBlendType. |
srcBlendFunc |
Current src alpha blend function. Will be a value from the enumeration MGL_blendFuncType. |
dstBlendFunc |
Current dest alpha blend function. Will be a value from the enumeration MGL_blendFuncType. |
alphaValue |
Current constant alpha value between 0 and 255. |
planeMask |
Current plane mask to determine which bits get updated. |
ditherMode |
Current dither mode for blitting RGB bitmaps |
ts |
Current text drawing attributes |
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com