Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
1.4.2.1.1 Line Rendering
This section describes how to render lines.
Description
When rendering lines, two things needs to be set:
1. Set the color (GFX_ColorSet())
2. Set the line style (GFX_LineStyleSet())
After the color and style is set, GFX_LineDraw() can be called to render the line. GFX_LineDraw() can be called multiple
times to render lines that has the same color and line style. GFX_ColorSet() and GFX_LineStyleSet() will only be called
when the color or the line style needs to be changed. For example: When one of the lines to be rendered has to change
color, the GFX_ColorSet() function must be called to change the color.
Remarks
Alpha blended lines as well as anti-aliased lines are not yet supported.
1.4.2.1.2 Polygon Rendering
This section describes how to render polygons.
1.4.2.1.2.1 Unfilled Polygon Rendering
This section describes how to render unfilled polygons.
Description
Unfilled polygons are rectangles and rounded rectangles. Circles is a special case of a rounded rectangle. Rendering unfilled
polygons uses the line styles.
Similar to rendering lines, two things needs to be set:
1. Set the color (GFX_ColorSet())
2. Set the line style (GFX_LineStyleSet())
3. Call the specific polygon function
1.4.2.1.2.2 Filled Polygon Rendering
This section describes how to render filled polygons.
Description
Filled polygons are filled rectangles and filled rounded rectangles. Bar is a special case of a filled rectangle and filled circle is
a special case of a filled rounded rectangle.
For filled polygons, the fill styles can be set:
Fill Style Description
GFX_FILL_STYLE_NONE The effect of this fill type is the same as unfilled polygon.
GFX_FILL_STYLE_ALPHA_COLOR The fill will be the color set by the last call to GFX_ColorSet() function.
GFX_FILL_STYLE_GRADIENT_DOWN Sets that the fill style is alpha blended. The alpha blending effect will be
dependent on the background type set (see
GFX_BackgroundTypeSet()). The level of alpha blending will depend on
the last GFX_AlphaBlendingValueSet() call.
GFX_FILL_STYLE_GRADIENT_UP The effect is a gradient fill in the vertical up direction.
GFX_FILL_STYLE_GRADIENT_UP The effect is a gradient fill in the vertical down direction.
GFX_FILL_STYLE_GRADIENT_RIGHT The effect is a gradient fill in the horizontal right direction.
1.4 Using The Library MLA - Graphics Library Help How the Library Works
51
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_gfx.pdf