mirror of
https://github.com/libretro/RetroArch
synced 2025-04-15 23:42:30 +00:00
Add some video callbacks for consoles.
This commit is contained in:
parent
89b99428f9
commit
77e55bb577
6
driver.h
6
driver.h
@ -141,6 +141,12 @@ typedef struct video_driver
|
||||
bool (*xml_shader)(void *data, const char *path); // Sets XML-shader. Might not be implemented.
|
||||
void (*free)(void *data);
|
||||
const char *ident;
|
||||
|
||||
// Callbacks essentially useless on PC, but useful on consoles where the drivers are used for more stuff.
|
||||
#ifdef SSNES_CONSOLE
|
||||
void (*set_swap_block_state)(void *data, bool toggle); // Block swapping from being called in ::frame().
|
||||
void (*swap)(void *data) // Explicitly swap buffers. Only useful when set_swap_block_state() is set to true.
|
||||
#endif
|
||||
} video_driver_t;
|
||||
|
||||
typedef struct driver
|
||||
|
Loading…
x
Reference in New Issue
Block a user