libtransistor
A userland library for the Nintendo Switch
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
display.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 #include<libtransistor/types.h>
14 
19 typedef struct {
20  uint64_t id;
21  revent_h vsync;
22 } display_t;
23 
28 
35 
42 
48 void display_close_layer(surface_t *surface);
49 
53 void display_finalize();
54 
55 #ifdef __cplusplus
56 }
57 #endif
Various system types.
Represents a physical display.
Definition: display.h:19
A surface that can be drawn to.
Definition: surface.h:30
result_t display_init()
Initialize Display.
uint32_t result_t
Function result.
Definition: types.h:51
void display_finalize()
Finalize Display.
handle_t revent_h
revent handle
Definition: types.h:47
result_t display_get_vsync_event(revent_h *event)
Get a V-Sync event.
void display_close_layer(surface_t *surface)
Close a display layer.
Display surface data structures and functions.
result_t display_open_layer(surface_t *surface)
Open a display layer.