# Vault 7: Projects

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

### Protego

# MLA -- Graphics Library

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

associated with the specified index. Use this function to initialize or modify the array of frame buffers in the system at run
time.
For systems with single buffer, frame buffer and draw buffer are the same buffer. Calls to this function will have no effect and
will always return GFX_STATUS_SUCCESS. The size of the buffer is defined by the dimension of the screen and the color
depth used.
Preconditions
None.
Example
None.
Parameters
Parameters Description
index specifies the index value of the buffer in the array of buffers.
For single buffer systems, the given index will be ignored.
address specifies the location of the buffer in memory.
Function
GFX_STATUS GFX_DrawBufferInitialize(
uint16_t index,
uint32_t address)
1.6.1.1.10.16 GFX_DrawBufferSet Function
This function sets the draw buffer with the given index number.
File
gfx_primitive.h
Syntax
GFX_STATUS GFX_DrawBufferSet(uint16_t index);
Returns
Status of the draw buffer set. GFX_STATUS_SUCCESS - the draw buffer was successfully set. GFX_STATUS_FAILURE -
the draw buffer was not successfully set.
Description
This function sets the draw buffer with the given index number. For systems with single buffer, frame buffer and draw buffer
are the same buffer. Calls to this function will have no effect and will always return GFX_STATUS_SUCCESS.
Preconditions
None.
Example
None.
Parameters
Parameters Description
index the index of the buffer to be set as the draw buffer.
Function
GFX_STATUS GFX_DrawBufferSet(uint16_t index)
1.6 Library Interface MLA - Graphics Library Help Graphics Primitive Layer
135

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