GrSetAreaAttr(), GrSetLineAttr(), GrSetTextAttr()
The graphics system keeps track of many attributes which affect how graphics will be drawn. By setting attributes in the graphics state, your geode can change the color, fill pattern, and other features that won't affect the shape of what you're drawing but will affect its appearance.
The following sections will explain how each of these attributes may be set individually. Note that if you wish to set all attributes to use when filling areas at once, call
GrSetAreaAttr()
. Call
GrSetLineAttr()
to set all attributes to use when drawing lines. Use
GrSetTextAttr()
to set all text-rendering attributes.