mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 08:37:41 +00:00
(Video) Implement missing function pointers
This commit is contained in:
parent
bcb9852001
commit
492af587ef
@ -961,6 +961,14 @@ static void *d3d_init(const video_info_t *info, const input_driver_t **input, vo
|
||||
return vid;
|
||||
}
|
||||
|
||||
static bool d3d_read_viewport(void *data, uint8_t *buffer)
|
||||
{
|
||||
(void)data;
|
||||
(void)buffer;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
const video_driver_t video_d3d = {
|
||||
d3d_init,
|
||||
d3d_frame,
|
||||
@ -972,7 +980,7 @@ const video_driver_t video_d3d = {
|
||||
"d3d",
|
||||
d3d_set_rotation,
|
||||
d3d_viewport_info,
|
||||
NULL, /* read_viewport */
|
||||
d3d_read_viewport,
|
||||
#ifdef HAVE_OVERLAY
|
||||
NULL, /* overlay_interface */
|
||||
#endif
|
||||
|
@ -1341,13 +1341,14 @@ static bool exynos_gfx_focus(void *data) {
|
||||
return true; /* drm device always has focus */
|
||||
}
|
||||
|
||||
static void exynos_gfx_set_rotation(void *data, unsigned rotation) {
|
||||
static void exynos_gfx_set_rotation(void *data, unsigned rotation)
|
||||
{
|
||||
struct exynos_video *vid = data;
|
||||
|
||||
vid->menu_rotation = rotation;
|
||||
}
|
||||
|
||||
static void exynos_gfx_viewport_info(void *data, struct rarch_viewport *vp) {
|
||||
static void exynos_gfx_viewport_info(void *data, struct rarch_viewport *vp)
|
||||
{
|
||||
struct exynos_video *vid = data;
|
||||
|
||||
vp->x = vp->y = 0;
|
||||
@ -1449,9 +1450,29 @@ static const video_poke_interface_t exynos_poke_interface = {
|
||||
exynos_show_mouse
|
||||
};
|
||||
|
||||
static void exynos_gfx_get_poke_interface(void *data, const video_poke_interface_t **iface) {
|
||||
(void)data;
|
||||
*iface = &exynos_poke_interface;
|
||||
static void exynos_gfx_get_poke_interface(void *data,
|
||||
const video_poke_interface_t **iface)
|
||||
{
|
||||
(void)data;
|
||||
*iface = &exynos_poke_interface;
|
||||
}
|
||||
|
||||
static bool exynos_gfx_set_shader(void *data,
|
||||
enum rarch_shader_type type, const char *path)
|
||||
{
|
||||
(void)data;
|
||||
(void)type;
|
||||
(void)path;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
static bool exynos_gfx_read_viewport(void *data, uint8_t *buffer)
|
||||
{
|
||||
(void)data;
|
||||
(void)buffer;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
const video_driver_t video_exynos = {
|
||||
@ -1460,12 +1481,12 @@ const video_driver_t video_exynos = {
|
||||
exynos_gfx_set_nonblock_state,
|
||||
exynos_gfx_alive,
|
||||
exynos_gfx_focus,
|
||||
NULL, /* set_shader */
|
||||
exynos_gfx_set_shader,
|
||||
exynos_gfx_free,
|
||||
"exynos",
|
||||
exynos_gfx_set_rotation,
|
||||
exynos_gfx_viewport_info,
|
||||
NULL, /* read_viewport */
|
||||
exynos_gfx_read_viewport,
|
||||
|
||||
#ifdef HAVE_OVERLAY
|
||||
NULL, /* overlay_interface */
|
||||
|
@ -1312,13 +1312,23 @@ static void gx_get_overlay_interface(void *data, const video_overlay_interface_t
|
||||
}
|
||||
#endif
|
||||
|
||||
static bool gx_set_shader(void *data,
|
||||
enum rarch_shader_type type, const char *path)
|
||||
{
|
||||
(void)data;
|
||||
(void)type;
|
||||
(void)path;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
const video_driver_t video_gx = {
|
||||
gx_init,
|
||||
gx_frame,
|
||||
gx_set_nonblock_state,
|
||||
gx_alive,
|
||||
gx_focus,
|
||||
NULL,
|
||||
gx_set_shader,
|
||||
gx_free,
|
||||
"gx",
|
||||
gx_set_rotation,
|
||||
|
@ -62,15 +62,60 @@ static void null_gfx_free(void *data)
|
||||
(void)data;
|
||||
}
|
||||
|
||||
static bool null_gfx_set_shader(void *data,
|
||||
enum rarch_shader_type type, const char *path)
|
||||
{
|
||||
(void)data;
|
||||
(void)type;
|
||||
(void)path;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
static void null_gfx_set_rotation(void *data,
|
||||
unsigned rotation)
|
||||
{
|
||||
(void)data;
|
||||
(void)rotation;
|
||||
}
|
||||
|
||||
static void null_gfx_viewport_info(void *data,
|
||||
struct rarch_viewport *vp)
|
||||
{
|
||||
(void)data;
|
||||
(void)vp;
|
||||
}
|
||||
|
||||
static bool null_gfx_read_viewport(void *data, uint8_t *buffer)
|
||||
{
|
||||
(void)data;
|
||||
(void)buffer;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
static void null_gfx_get_poke_interface(void *data,
|
||||
const video_poke_interface_t **iface)
|
||||
{
|
||||
(void)data;
|
||||
(void)iface;
|
||||
}
|
||||
|
||||
const video_driver_t video_null = {
|
||||
null_gfx_init,
|
||||
null_gfx_frame,
|
||||
null_gfx_set_nonblock_state,
|
||||
null_gfx_alive,
|
||||
null_gfx_focus,
|
||||
NULL,
|
||||
null_gfx_set_shader,
|
||||
null_gfx_free,
|
||||
"null",
|
||||
null_gfx_set_rotation,
|
||||
null_gfx_viewport_info,
|
||||
null_gfx_read_viewport,
|
||||
|
||||
#ifdef HAVE_OVERLAY
|
||||
NULL, /* overlay_interface */
|
||||
#endif
|
||||
null_gfx_get_poke_interface,
|
||||
};
|
||||
|
||||
|
@ -879,22 +879,53 @@ static void omap_gfx_viewport_info(void *data, struct rarch_viewport *vp) {
|
||||
vp->height = vp->full_height = vid->height;
|
||||
}
|
||||
|
||||
static bool omap_gfx_set_shader(void *data,
|
||||
enum rarch_shader_type type, const char *path)
|
||||
{
|
||||
(void)data;
|
||||
(void)type;
|
||||
(void)path;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
static void omap_gfx_set_rotation(void *data, unsigned rotation)
|
||||
{
|
||||
(void)data;
|
||||
(void)rotation;
|
||||
}
|
||||
|
||||
static bool omap_gfx_read_viewport(void *data, uint8_t *buffer)
|
||||
{
|
||||
(void)data;
|
||||
(void)buffer;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
static void omap_gfx_get_poke_interface(void *data,
|
||||
const video_poke_interface_t **iface)
|
||||
{
|
||||
(void)data;
|
||||
(void)iface;
|
||||
}
|
||||
|
||||
const video_driver_t video_omap = {
|
||||
omap_gfx_init,
|
||||
omap_gfx_frame,
|
||||
omap_gfx_set_nonblock_state,
|
||||
omap_gfx_alive,
|
||||
omap_gfx_focus,
|
||||
NULL, /* set_shader */
|
||||
omap_gfx_set_shader,
|
||||
omap_gfx_free,
|
||||
"omap",
|
||||
|
||||
NULL, /* set_rotation */
|
||||
omap_gfx_set_rotation,
|
||||
omap_gfx_viewport_info,
|
||||
NULL, /* read_viewport */
|
||||
omap_gfx_read_viewport,
|
||||
|
||||
#ifdef HAVE_OVERLAY
|
||||
NULL, /* overlay_interface */
|
||||
#endif
|
||||
NULL /* poke_interface */
|
||||
omap_gfx_get_poke_interface
|
||||
};
|
||||
|
@ -796,19 +796,37 @@ static void psp_get_poke_interface(void *data,
|
||||
*iface = &psp_poke_interface;
|
||||
}
|
||||
|
||||
static bool psp_read_viewport(void *data, uint8_t *buffer)
|
||||
{
|
||||
(void)data;
|
||||
(void)buffer;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
static bool psp_set_shader(void *data,
|
||||
enum rarch_shader_type type, const char *path)
|
||||
{
|
||||
(void)data;
|
||||
(void)type;
|
||||
(void)path;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
const video_driver_t video_psp1 = {
|
||||
psp_init,
|
||||
psp_frame,
|
||||
psp_set_nonblock_state,
|
||||
psp_alive,
|
||||
psp_focus,
|
||||
NULL,
|
||||
psp_set_shader,
|
||||
psp_free,
|
||||
"psp1",
|
||||
|
||||
psp_set_rotation,
|
||||
psp_viewport_info,
|
||||
NULL, /* psp_read_viewport */
|
||||
psp_read_viewport,
|
||||
#ifdef HAVE_OVERLAY
|
||||
NULL,
|
||||
#endif
|
||||
|
@ -704,13 +704,23 @@ void sdl2_gfx_poke_interface(void *data, const video_poke_interface_t **iface)
|
||||
*iface = &sdl2_video_poke_interface;
|
||||
}
|
||||
|
||||
static bool sdl2_gfx_set_shader(void *data,
|
||||
enum rarch_shader_type type, const char *path)
|
||||
{
|
||||
(void)data;
|
||||
(void)type;
|
||||
(void)path;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
const video_driver_t video_sdl2 = {
|
||||
sdl2_gfx_init,
|
||||
sdl2_gfx_frame,
|
||||
sdl2_gfx_set_nonblock_state,
|
||||
sdl2_gfx_alive,
|
||||
sdl2_gfx_focus,
|
||||
NULL,
|
||||
sdl2_gfx_set_shader,
|
||||
sdl2_gfx_free,
|
||||
"sdl2",
|
||||
|
||||
|
@ -492,19 +492,42 @@ static void sdl_get_poke_interface(void *data, const video_poke_interface_t **if
|
||||
*iface = &sdl_poke_interface;
|
||||
}
|
||||
|
||||
static bool sdl_gfx_set_shader(void *data,
|
||||
enum rarch_shader_type type, const char *path)
|
||||
{
|
||||
(void)data;
|
||||
(void)type;
|
||||
(void)path;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
static void sdl_gfx_set_rotation(void *data, unsigned rotation)
|
||||
{
|
||||
(void)data;
|
||||
(void)rotation;
|
||||
}
|
||||
|
||||
static bool sdl_gfx_read_viewport(void *data, uint8_t *buffer)
|
||||
{
|
||||
(void)data;
|
||||
(void)buffer;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
const video_driver_t video_sdl = {
|
||||
sdl_gfx_init,
|
||||
sdl_gfx_frame,
|
||||
sdl_gfx_set_nonblock_state,
|
||||
sdl_gfx_alive,
|
||||
sdl_gfx_focus,
|
||||
NULL,
|
||||
sdl_gfx_set_shader,
|
||||
sdl_gfx_free,
|
||||
"sdl",
|
||||
|
||||
NULL,
|
||||
sdl_gfx_set_rotation,
|
||||
sdl_gfx_viewport_info,
|
||||
NULL,
|
||||
sdl_gfx_read_viewport,
|
||||
#ifdef HAVE_OVERLAY
|
||||
NULL,
|
||||
#endif
|
||||
|
49
gfx/vg.c
49
gfx/vg.c
@ -413,13 +413,58 @@ static bool vg_focus(void *data)
|
||||
return vg->driver->has_focus(vg);
|
||||
}
|
||||
|
||||
static bool vg_set_shader(void *data,
|
||||
enum rarch_shader_type type, const char *path)
|
||||
{
|
||||
(void)data;
|
||||
(void)type;
|
||||
(void)path;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
static void vg_set_rotation(void *data, unsigned rotation)
|
||||
{
|
||||
(void)data;
|
||||
(void)rotation;
|
||||
}
|
||||
|
||||
static void vg_viewport_info(void *data,
|
||||
struct rarch_viewport *vp)
|
||||
{
|
||||
(void)data;
|
||||
(void)vp;
|
||||
}
|
||||
|
||||
static bool vg_read_viewport(void *data, uint8_t *buffer)
|
||||
{
|
||||
(void)data;
|
||||
(void)buffer;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
static void vg_get_poke_interface(void *data,
|
||||
const video_poke_interface_t **iface)
|
||||
{
|
||||
(void)data;
|
||||
(void)iface;
|
||||
}
|
||||
|
||||
const video_driver_t video_vg = {
|
||||
vg_init,
|
||||
vg_frame,
|
||||
vg_set_nonblock_state,
|
||||
vg_alive,
|
||||
vg_focus,
|
||||
NULL,
|
||||
vg_set_shader,
|
||||
vg_free,
|
||||
"vg"
|
||||
"vg",
|
||||
vg_set_rotation,
|
||||
vg_viewport_info,
|
||||
vg_read_viewport,
|
||||
#ifdef HAVE_OVERLAY
|
||||
NULL, /* overlay_interface */
|
||||
#endif
|
||||
vg_get_poke_interface
|
||||
};
|
||||
|
@ -263,14 +263,59 @@ static void xenon360_gfx_set_rotation(void *data, unsigned rotation)
|
||||
(void)rotation;
|
||||
}
|
||||
|
||||
static bool xenon360_gfx_set_shader(void *data,
|
||||
enum rarch_shader_type type, const char *path)
|
||||
{
|
||||
(void)data;
|
||||
(void)type;
|
||||
(void)path;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
static void xenon360_gfx_set_rotation(void *data, unsigned rotation)
|
||||
{
|
||||
(void)data;
|
||||
(void)rotation;
|
||||
}
|
||||
|
||||
static void xenon360_gfx_viewport_info(void *data, struct rarch_viewport *vp)
|
||||
{
|
||||
(void)data;
|
||||
(void)vp;
|
||||
}
|
||||
|
||||
static bool xenon360_gfx_read_viewport(void *data, uint8_t *buffer)
|
||||
{
|
||||
(void)data;
|
||||
(void)buffer;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
static void xenon360_gfx_get_poke_interface(void *data,
|
||||
const video_poke_interface_t **iface)
|
||||
{
|
||||
(void)data;
|
||||
(void)iface;
|
||||
}
|
||||
|
||||
const video_driver_t video_xenon360 = {
|
||||
xenon360_gfx_init,
|
||||
xenon360_gfx_frame,
|
||||
xenon360_gfx_set_nonblock_state,
|
||||
xenon360_gfx_alive,
|
||||
xenon360_gfx_focus,
|
||||
NULL,
|
||||
xenon360_gfx_set_shader,
|
||||
xenon360_gfx_free,
|
||||
"xenon360"
|
||||
"xenon360",
|
||||
xenon360_gfx_set_rotation,
|
||||
xenon360_gfx_viewport_info,
|
||||
xenon360_gfx_read_viewport,
|
||||
|
||||
#ifdef HAVE_OVERLAY
|
||||
NULL, /* overlay_interface */
|
||||
#endif
|
||||
xenon360_gfx_get_poke_interface
|
||||
};
|
||||
|
||||
|
41
gfx/xvideo.c
41
gfx/xvideo.c
@ -809,17 +809,52 @@ static void xv_viewport_info(void *data, struct rarch_viewport *vp)
|
||||
*vp = xv->vp;
|
||||
}
|
||||
|
||||
static void xv_set_rotation(void *data, unsigned rotation)
|
||||
{
|
||||
(void)data;
|
||||
(void)rotation;
|
||||
}
|
||||
|
||||
static bool xv_read_viewport(void *data, uint8_t *buffer)
|
||||
{
|
||||
(void)data;
|
||||
(void)buffer;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
static void xv_get_poke_interface(void *data,
|
||||
const video_poke_interface_t **iface)
|
||||
{
|
||||
(void)data;
|
||||
(void)iface;
|
||||
}
|
||||
|
||||
static bool xv_set_shader(void *data,
|
||||
enum rarch_shader_type type, const char *path)
|
||||
{
|
||||
(void)data;
|
||||
(void)type;
|
||||
(void)path;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
const video_driver_t video_xvideo = {
|
||||
xv_init,
|
||||
xv_frame,
|
||||
xv_set_nonblock_state,
|
||||
xv_alive,
|
||||
xv_focus,
|
||||
NULL,
|
||||
xv_set_shader,
|
||||
xv_free,
|
||||
"xvideo",
|
||||
|
||||
NULL,
|
||||
xv_set_rotation,
|
||||
xv_viewport_info,
|
||||
xv_read_viewport,
|
||||
#ifdef HAVE_OVERLAY
|
||||
NULL, /* overlay_interface */
|
||||
#endif
|
||||
xv_get_poke_interface
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user