Add some video callbacks for consoles.

This commit is contained in:
Themaister 2012-02-13 19:17:13 +01:00
parent 89b99428f9
commit 77e55bb577

View File

@ -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