跳转至

_CFBD_GraphicDevice

Module: Graphics Device Abstraction

#include <graphic_device.h>

Public Attributes

Name
CFBD_GraphicDeviceOperation * ops
Pointer to the operation table.
CFBDGraphic_DeviceType device_type
The graphics device type.
CFBDGraphicDeviceHandle internal_handle
Opaque device-specific handle and state.
CFBD_Bool immediate_draw
Immediate draw mode flag.

Public Attributes Documentation

variable ops

CFBD_GraphicDeviceOperation * ops;

Pointer to the operation table.

Device implementations populate this with concrete operations. Must be non-NULL after device initialization.

variable device_type

CFBDGraphic_DeviceType device_type;

The graphics device type.

Identifies the hardware type (OLED, LCD, etc.). Determines device-specific behavior and capabilities.

variable internal_handle

CFBDGraphicDeviceHandle internal_handle;

Opaque device-specific handle and state.

Contains implementation-specific data such as hardware handles, configuration parameters, and internal buffers. Must not be accessed or modified directly by application code.

variable immediate_draw

CFBD_Bool immediate_draw;

Immediate draw mode flag.

When CFBD_TRUE, each drawing operation automatically updates the display immediately. When CFBD_FALSE, drawing operations modify the frame buffer but do not update the display until ops->update() is explicitly called (batch mode).

This enables flexible control over rendering performance and visual updates.


Updated on 2026-02-03 at 13:21:55 +0000