picofuse

sdl.h
Go to the documentation of this file.
1 
9 #pragma once
10 
11 #include <picofuse/pix.h>
12 
14 // TYPES
15 
20 typedef enum {
22  dev_sdl_fullscreen = 1 << 0,
23  dev_sdl_borderless = 1 << 1,
24  dev_sdl_centered = 1 << 2,
26  dev_sdl_hidden = 1 << 3,
32 
34 // LIFECYCLE
35 
54 pix_display_t *dev_sdl_init(const char *title, pix_size_t size,
55  pix_format_t format, dev_sdl_flags_t flags,
56  uint16_t interval_ms);
57 
Create the window without a title bar or borders.
Definition: sdl.h:23
No flags.
Definition: sdl.h:21
Create the window without showing it - for exercising this backend headlessly (CI, no display server) with a real window/event loop behind it.
Definition: sdl.h:27
dev_sdl_flags_t
Flags for SDL display creation.
Definition: sdl.h:20
Pixel graphics library.
Open the window fullscreen.
Definition: sdl.h:22
struct pix_display_t pix_display_t
Opaque display descriptor.
Definition: display.h:23
pix_format_t
Pixel format enumeration defining color depth and layout.
Definition: types.h:35
Size structure representing width and height dimensions.
Definition: types.h:26
Center the window - the default position is otherwise platform-defined.
Definition: sdl.h:25
pix_display_t * dev_sdl_init(const char *title, pix_size_t size, pix_format_t format, dev_sdl_flags_t flags, uint16_t interval_ms)
Initialize an SDL-backed display.