# Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

### Protego

# MLA -- Graphics Library

- 1
- 2
…
- 74
- 75
- 76
- 77
- 78
…
- 373
- 374

1.6 Library Interface
This section describes the Application Programming Interface (API) functions of the
Graphics Library
.
Refer to each section for a detailed description.
1.6.1 Graphics Primitive Layer
This section describes the API and usage of the Graphics Library Primitive Layer.
1.6.1.1 Graphics Primitive Layer API
Graphics Library Primitive Layer Interface.
1.6.1.1.1 Initialization Functions
The following API are used to initialize the layer.
Functions
Name Description
GFX_Initialize Initialize the Graphics Library.
GFX_ScreenClear Clears the screen to the currently set color (GFX_ColorSet()).
1.6.1.1.1.1 GFX_Initialize Function
Initialize the Graphics Library.
File
gfx_primitive.h
Syntax
void GFX_Initialize();
Returns
None.
Description
This function initialize the Graphics Library primitive layer and Graphics Object Layer if it is enabled. The following default
settings are set when this function is called.
1. font - Set to NULL. GFX_FontSet() must be called prior to any text rendering.
2. line type - Set to GFX_LINE_TYPE_THIN_SOLID (see GFX_LINE_STYLE).
3. fill type - Set to GFX_FILL_TYPE_COLOR (see GFX_FILL_STYLE).
4. text anti-alias type - Set to GFX_FONT_ANTIALIAS_OPAQUE (see GFX_FONT_ANTIALIAS_TYPE). This only affects
fonts with anti-aliasing enabled.
5. Set transparent color feature in image draw functions to be disabled.
6. Set alpha blending value to 100 (or no alpha blending) if alphe blending feature is enabled.
7. Set background information to no background.
1.6 Library Interface MLA - Graphics Library Help Graphics Primitive Layer
76

- 1
- 2
…
- 74
- 75
- 76
- 77
- 78
…
- 373
- 374