# Vault 7: Projects

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

### Protego

# MLA -- Graphics Library

- 1
- 2
…
- 132
- 133
- 134
- 135
- 136
…
- 373
- 374

Description
This function returns the status of the synchronization request of the draw and frame buffer. The difference between
GFX_DoubleBufferSynchronizeStatusGet() and GFX_DoubleBufferSyncAllStatusGet() is that the
GFX_DoubleBufferSynchronizeStatusGet() returns the status of synchronization request. The size of the synchronization
may or may not be the full screen synchronization. The GFX_DoubleBufferSyncAllStatusGet() on the other hand returns the
status of a full screen synchronization.
Preconditions
Double buffering feature must be enabled.
Example
None.
Function
GFX_FEATURE_STATUS GFX_DoubleBufferSynchronizeStatusGet(void)
1.6.1.1.10.14 GFX_DrawBufferGet Function
This function returns the index of the current draw buffer.
File
gfx_primitive.h
Syntax
uint16_t GFX_DrawBufferGet();
Returns
The index of the current draw buffer set.
Description
This function returns the index of the current draw buffer. Draw buffer is the buffer where rendering is performed. For
systems with single buffer this function will always return 0.
Preconditions
None.
Example
None.
Function
uint16_t GFX_DrawBufferGet(void)
1.6.1.1.10.15 GFX_DrawBufferInitialize Function
This function initializes the address of the draw buffer specified by the given index.
File
gfx_primitive.h
Syntax
GFX_STATUS GFX_DrawBufferInitialize(uint16_t index, uint32_t address);
Returns
Status of the buffer set. GFX_STATUS_SUCCESS - the buffer was successfully set. GFX_STATUS_FAILURE - the buffer
was not successfully set.
Description
For system with multiple buffers, this function is used to initialize the array of buffers. The address of the draw buffer will be
1.6 Library Interface MLA - Graphics Library Help Graphics Primitive Layer
134

- 1
- 2
…
- 132
- 133
- 134
- 135
- 136
…
- 373
- 374