Functions for opening and closing pixel displays.
More...
Functions for opening and closing pixel displays.
◆ PIX_DISPLAY_CTX_SIZE
#define PIX_DISPLAY_CTX_SIZE 64 |
Size of the display context buffer.
This defines the size in bytes of the internal context buffer used for display operations. The buffer must be large enough to hold any display-specific state data required by different display implementations.
Definition at line 31 of file display.h.
◆ pix_display_callback_t
typedef void(* pix_display_callback_t) (const struct pix_display_t *display) |
Display callback function type for frame updates.
- Parameters
-
display | Pointer to the display that needs updating |
- Returns
- true if the callback was successful, false on error
Definition at line 42 of file display.h.
◆ pix_display_t
Display context structure.
Contains the state for display operations.
◆ pix_sdl_display_init()
Initialize a new SDL display with the specified format, size, and interval.
- Parameters
-
title | Window title |
size | Display dimensions |
format | Pixel format |
interval_ms | Frame interval in milliseconds (0 = no limit) |
callback | Optional callback function called at the target interval |
userdata | User context pointer for the callback |
- Returns
- Initialized display structure, or empty if initialization failed