From 77e55bb577e8cd9de7c2661a2b255d00dabc6903 Mon Sep 17 00:00:00 2001 From: Themaister Date: Mon, 13 Feb 2012 19:17:13 +0100 Subject: [PATCH] Add some video callbacks for consoles. --- driver.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/driver.h b/driver.h index 50bf6779e0..05775b6c22 100644 --- a/driver.h +++ b/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