MPLAB® Harmony Graphics Suite
|
Stucture: GFX_Context_t
The context is an instance of the hardware abstraction layer. It is essentially the marriage between a graphics driver, a display description, and possibly a graphics processor. It contains the data that describes the layout of the display, the buffers that store the display data, the current draw state, and the function map that controls everything.
Members: display_idx - the display associated with this context display_info - a pointer to the information for the display for this context
layer.count - the number of existing layers layer.active_idx - the index of the active layer layer.active - the pointer to the active layer layer.layers - the array of layers for this context
brightness - the brightness setting for this context orientation - the orientation mode for this context mirrored - the mirror mode for this context
colorMode - the color mode for this context, all buffers of all layers use this mode
draw - the current draw state of this context
vsyncCB - the callback to invoke when the driver enters vsync mode hsyncCB - the callback to invoke when the driver enters hsync mode
hal - the function table for this context
memory - the memory management interface for this context
driver_data - a pointer that can be used for driver-specific data purposes
typedef struct GFX_Context_t { GFX_Display display_idx; GFX_DisplayInfo* display_info; struct { uint32_t count; uint32_t active_idx; GFX_Layer* active; GFX_Layer* layers; } layer; uint32_t brightness; GFX_Orientation orientation; GFX_Bool mirrored; GFX_Bool layerSwapSync; GFX_ColorMode colorMode; GFX_GlobalPalette globalPalette; GFX_DrawState draw; GFX_SyncCallback_FnPtr vsyncCB; GFX_SyncCallback_FnPtr hsyncCB; GFX_HAL hal; GFX_MemoryIntf memory; void* driver_data; } GFX_Context;
Members |
Description |
GFX_SyncCallback_FnPtr vsyncCB; |
GFX_DRAW_PIPELINE_ENABLED |
None.
MPLAB® Harmony Graphics Suite
|