PebbleOS v4.43.0-131-ga855823dd
Loading...
Searching...
No Matches
SDL display

Display driver showing the framebuffer in an SDL window on the host. More...

Macros

#define PBL_DISPLAY_SDL_DEFINE(sym, _name, _width, _height, _format)
 Define an SDL display.
 

Detailed Description

Display driver showing the framebuffer in an SDL window on the host.

Updates complete before pbl_display_update() returns. The image is not rotated.

Macro Definition Documentation

◆ PBL_DISPLAY_SDL_DEFINE

#define PBL_DISPLAY_SDL_DEFINE (   sym,
  _name,
  _width,
  _height,
  _format 
)
Value:
const struct pbl_display sym = PBL_DISPLAY_INIT(sym, _name, &pbl_display_sdl_ops, nullptr, \
_width, _height, _format, false); \
PBL_DEVICE_REGISTER(sym, &sym.dev)
struct pbl_device dev
Device.
Definition display.h:109
A display.
Definition display.h:107
#define PBL_DISPLAY_INIT(sym, _name, _ops, _deps, _width, _height, _format, _rotated)
Initializer for the struct pbl_display of display sym.
Definition display.h:149
#define PBL_DISPLAY_STATE_DEFINE(sym)
Define the class state of display sym, for the PBL_*_DEFINE() macro of a driver.
Definition display.h:132

Define an SDL display.

Parameters
symSymbol of the display.
_nameName.
_widthWidth, in pixels.
_heightHeight, in pixels.
_formatFramebuffer format.