bool video_driver_focus(void) { driver_t *driver = driver_get_ptr(); const video_driver_t *video = video_driver_ctx_get_ptr(); return video->focus(driver->video_data); }
bool video_driver_has_windowed(void) { driver_t *driver = driver_get_ptr(); const video_driver_t *video = video_driver_ctx_get_ptr(); return video->has_windowed(driver->video_data); }
bool video_driver_suppress_screensaver(bool enable) { driver_t *driver = driver_get_ptr(); const video_driver_t *video = video_driver_ctx_get_ptr(); return video->suppress_screensaver(driver->video_data, enable); }
bool video_driver_is_alive(void) { driver_t *driver = driver_get_ptr(); const video_driver_t *video = video_driver_ctx_get_ptr(); return video->alive(driver->video_data); }
const char *video_driver_get_ident(void) { const video_driver_t *video = video_driver_ctx_get_ptr(); if (video) return video->ident; return NULL; }
void video_driver_set_nonblock_state(bool toggle) { driver_t *driver = driver_get_ptr(); const video_driver_t *video = video_driver_ctx_get_ptr(); if (video->set_nonblock_state) video->set_nonblock_state(driver->video_data, toggle); }
bool video_driver_read_viewport(uint8_t *buffer) { driver_t *driver = driver_get_ptr(); const video_driver_t *video = video_driver_ctx_get_ptr(); if (video->read_viewport) return video->read_viewport(driver->video_data, buffer); return false; }
bool video_driver_set_shader(enum rarch_shader_type type, const char *path) { driver_t *driver = driver_get_ptr(); const video_driver_t *video = video_driver_ctx_get_ptr(); if (video->set_shader) return video->set_shader(driver->video_data, type, path); return false; }
bool video_driver_frame(const void *frame, unsigned width, unsigned height, unsigned pitch, const char *msg) { driver_t *driver = driver_get_ptr(); const video_driver_t *video = video_driver_ctx_get_ptr(); if (video->frame(driver->video_data, frame, width, height, pitch, msg)) return true; return false; }
void * video_driver_read_frame_raw(unsigned *width, unsigned *height, size_t *pitch) { driver_t *driver = driver_get_ptr(); const video_driver_t *video = video_driver_ctx_get_ptr(); if (video->read_frame_raw) return video->read_frame_raw(driver->video_data, width, height, pitch); return NULL; }
bool video_driver_overlay_interface(const video_overlay_interface_t **iface) { driver_t *driver = driver_get_ptr(); const video_driver_t *video = video_driver_ctx_get_ptr(); if (video->overlay_interface) { video->overlay_interface(driver->video_data, iface); return true; } return false; }
bool video_driver_viewport_info(struct video_viewport *vp) { driver_t *driver = driver_get_ptr(); const video_driver_t *video = video_driver_ctx_get_ptr(); if (video->viewport_info) { video->viewport_info(driver->video_data, vp); return true; } return false; }
bool video_driver_set_rotation(unsigned rotation) { driver_t *driver = driver_get_ptr(); const video_driver_t *video = video_driver_ctx_get_ptr(); if (video->set_rotation) { video->set_rotation(driver->video_data, rotation); return true; } return false; }
bool video_driver_set_viewport(unsigned width, unsigned height, bool force_fullscreen, bool allow_rotate) { driver_t *driver = driver_get_ptr(); const video_driver_t *video = video_driver_ctx_get_ptr(); if (video->set_viewport) { video->set_viewport(driver->video_data, width, height, force_fullscreen, allow_rotate); return true; } return false; }
const char *video_driver_get_ident(void) { driver_t *driver = driver_get_ptr(); const video_driver_t *video = video_driver_ctx_get_ptr(driver); return (video) ? video->ident : NULL; }