2017-12-11 18:12:32 -05:00
|
|
|
/* RetroArch - A frontend for libretro.
|
|
|
|
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
|
|
|
* Copyright (C) 2011-2017 - Daniel De Matteis
|
|
|
|
* Copyright (C) 2016-2017 - Brad Parker
|
|
|
|
*
|
|
|
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
|
|
|
* of the GNU General Public License as published by the Free Software Found-
|
|
|
|
* ation, either version 3 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
|
|
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
* PURPOSE. See the GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along with RetroArch.
|
|
|
|
* If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __VIDEO_DISPLAY_SERVER__H
|
|
|
|
#define __VIDEO_DISPLAY_SERVER__H
|
|
|
|
|
|
|
|
#include <retro_common_api.h>
|
|
|
|
#include <boolean.h>
|
|
|
|
|
|
|
|
RETRO_BEGIN_DECLS
|
|
|
|
|
|
|
|
typedef struct video_display_server
|
|
|
|
{
|
|
|
|
void *(*init)(void);
|
2018-01-25 21:48:08 -05:00
|
|
|
void (*destroy)(void *data);
|
2017-12-11 18:12:32 -05:00
|
|
|
bool (*set_window_opacity)(void *data, unsigned opacity);
|
2018-01-01 02:08:09 -05:00
|
|
|
bool (*set_window_progress)(void *data, int progress, bool finished);
|
2018-02-10 23:46:09 -05:00
|
|
|
bool (*set_window_decorations)(void *data, bool on);
|
2018-04-15 19:25:00 +02:00
|
|
|
bool (*switch_resolution)(void *data, unsigned width,
|
2018-04-30 17:50:13 +01:00
|
|
|
unsigned height, int int_hz, float hz);
|
2017-12-11 18:12:32 -05:00
|
|
|
const char *ident;
|
|
|
|
} video_display_server_t;
|
|
|
|
|
|
|
|
void* video_display_server_init(void);
|
2018-04-15 19:25:00 +02:00
|
|
|
|
2017-12-11 18:12:32 -05:00
|
|
|
void video_display_server_destroy(void);
|
2018-04-15 19:25:00 +02:00
|
|
|
|
2017-12-11 18:12:32 -05:00
|
|
|
bool video_display_server_set_window_opacity(unsigned opacity);
|
2018-04-15 19:25:00 +02:00
|
|
|
|
2018-01-01 02:08:09 -05:00
|
|
|
bool video_display_server_set_window_progress(int progress, bool finished);
|
2018-04-15 19:25:00 +02:00
|
|
|
|
2018-02-10 23:46:09 -05:00
|
|
|
bool video_display_server_set_window_decorations(bool on);
|
2017-12-11 18:12:32 -05:00
|
|
|
|
2018-04-15 19:25:00 +02:00
|
|
|
bool video_display_server_switch_resolution(
|
|
|
|
unsigned width, unsigned height,
|
2018-04-30 17:50:13 +01:00
|
|
|
int int_hz, float hz);
|
2018-04-15 19:25:00 +02:00
|
|
|
|
2017-12-11 18:12:32 -05:00
|
|
|
extern const video_display_server_t dispserv_win32;
|
2017-12-15 23:48:05 -05:00
|
|
|
extern const video_display_server_t dispserv_x11;
|
2017-12-11 18:12:32 -05:00
|
|
|
extern const video_display_server_t dispserv_null;
|
|
|
|
|
|
|
|
RETRO_END_DECLS
|
|
|
|
|
|
|
|
#endif
|