# Vault 7: Projects

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

### Protego

# MLA -- Graphics Library

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

This function does not clear the screen and does not assign any color to the currently set color. Application should set the
color and clear the screen.
Preconditions
None.
Example
None.
Function
void GFX_Initialize(void)
1.6.1.1.1.2 GFX_ScreenClear Function
Clears the screen to the currently set color (GFX_ColorSet()).
File
gfx_primitive.h
Syntax
GFX_STATUS GFX_ScreenClear();
Returns
The status of the screen clearing. GFX_STATUS_SUCCESS - screen was cleared. GFX_STATUS_FAILURE - screen is not
yet cleared
Description
This function clears the screen with the current color and sets the line cursor position to (0, 0).
If color is not set, before this function is called, the output is undefined.
If the function returns GFX_STATUS_FAILURE, clearing is not yet finished. Application must call the function again to
continue the clearing.
Preconditions
Color must be set by GFX_ColorSet().
None.
Example
GFX_ColorSet(BLACK);
GFX_ScreenClear();
Function
GFX_STATUS GFX_ScreenClear(void)
1.6.1.1.2 Line Rendering Functions
The following API are used to render lines.
Functions
Name Description
GFX_LineDraw This function renders a line from x1,y1 to x2,y2 using the currently set
line style (see GFX_LineStyleSet()).
GFX_LinePositionRelativeSet This function sets the line cursor to a new position relative to the current
position.
GFX_LinePositionSet This function sets the line cursor to a new position.
GFX_LinePositionXGet This function returns the current x position of the line cursor.
GFX_LinePositionYGet This function returns the current y position of the line cursor.
1.6 Library Interface MLA - Graphics Library Help Graphics Primitive Layer
77

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