Combine menu_driver.c and menu_display.c

This commit is contained in:
twinaphex 2017-05-19 15:25:14 +02:00
parent fd99239c99
commit 59fb7700b8
37 changed files with 1497 additions and 1583 deletions

View File

@ -582,7 +582,6 @@ ifeq ($(HAVE_MENU_COMMON), 1)
menu/cbs/menu_cbs_up.o \
menu/cbs/menu_cbs_down.o \
menu/cbs/menu_cbs_contentlist_switch.o \
menu/menu_display.o \
menu/menu_displaylist.o \
menu/menu_animation.o \
menu/drivers_display/menu_display_null.o \

View File

@ -49,7 +49,6 @@
#ifdef HAVE_MENU
#include "menu/menu_driver.h"
#include "menu/menu_content.h"
#include "menu/menu_display.h"
#include "menu/menu_shader.h"
#include "menu/widgets/menu_dialog.h"
#endif

View File

@ -226,7 +226,7 @@ static const bool overlay_hide_in_menu = true;
static const bool display_keyboard_overlay = false;
#ifdef HAVE_MENU
#include "menu/menu_display.h"
#include "menu/menu_driver.h"
static bool default_block_config_read = true;

View File

@ -62,7 +62,6 @@
#ifdef HAVE_MENU
#include "../../menu/menu_driver.h"
#include "../../menu/menu_display.h"
#include "../../menu/menu_entries.h"
#endif

View File

@ -978,7 +978,6 @@ MENU
#include "../menu/cbs/menu_cbs_down.c"
#include "../menu/cbs/menu_cbs_contentlist_switch.c"
#include "../menu/menu_shader.c"
#include "../menu/menu_display.c"
#include "../menu/menu_displaylist.c"
#include "../menu/menu_animation.c"

View File

@ -30,7 +30,7 @@
#endif
#ifdef HAVE_MENU
#include "../../menu/menu_display.h"
#include "../../menu/menu_driver.h"
#endif
#include "../input_config.h"

View File

@ -26,7 +26,6 @@
#include "../menu_animation.h"
#include "../menu_cbs.h"
#include "../menu_shader.h"
#include "../menu_display.h"
#include "../../tasks/tasks_internal.h"
#include "../../input/input_config.h"

View File

@ -28,7 +28,6 @@
#include "../menu_driver.h"
#include "../menu_cbs.h"
#include "../menu_display.h"
#include "../menu_setting.h"
#include "../menu_shader.h"
#include "../widgets/menu_dialog.h"

View File

@ -24,7 +24,6 @@
#include "../menu_driver.h"
#include "../menu_cbs.h"
#include "../menu_input.h"
#include "../menu_display.h"
#include "../menu_setting.h"
#include "../menu_shader.h"

View File

@ -43,7 +43,6 @@
#include "../menu_driver.h"
#include "../menu_animation.h"
#include "../menu_display.h"
#include "../menu_event.h"
#include "../widgets/menu_input_dialog.h"

View File

@ -22,7 +22,6 @@
#include "menu_generic.h"
#include "../menu_driver.h"
#include "../menu_display.h"
#include "../widgets/menu_dialog.h"
#include "../widgets/menu_input_bind_dialog.h"

View File

@ -37,7 +37,6 @@
#include "../menu_driver.h"
#include "../menu_animation.h"
#include "../menu_display.h"
#include "../../core.h"
#include "../../core_info.h"

View File

@ -29,7 +29,7 @@
#include "nk_common.h"
#include "../../menu_display.h"
#include "../../menu_driver.h"
#include "../../../gfx/video_driver.h"
#ifdef HAVE_GLSL

View File

@ -21,9 +21,9 @@
#define _NK_MENU_H
#include "nk_common.h"
#include "../../menu_display.h"
#include "../../menu_input.h"
#include "../../menu_driver.h"
#include "../../menu_input.h"
enum
{

View File

@ -21,7 +21,6 @@
#include <stdio.h>
#include "../menu_driver.h"
#include "../menu_display.h"
menu_ctx_driver_t menu_ctx_null = {
NULL, /* set_texture */

View File

@ -40,7 +40,6 @@
#include "../menu_driver.h"
#include "../menu_animation.h"
#include "../menu_display.h"
#include "../widgets/menu_input_dialog.h"

View File

@ -43,7 +43,6 @@
#include "../menu_driver.h"
#include "../menu_animation.h"
#include "../menu_display.h"
#include "../widgets/menu_entry.h"
#include "../widgets/menu_list.h"

View File

@ -36,7 +36,6 @@
#include "../menu_entries.h"
#include "../menu_input.h"
#include "../menu_setting.h"
#include "../menu_display.h"
#include "../widgets/menu_input_dialog.h"
#include "../../gfx/video_driver.h"

View File

@ -42,7 +42,6 @@
#include "../menu_driver.h"
#include "../menu_animation.h"
#include "../widgets/menu_entry.h"
#include "../menu_display.h"
#include "../../retroarch.h"
#include "../../gfx/font_driver.h"

View File

@ -23,7 +23,7 @@
#include "../../gfx/font_driver.h"
#include "../../gfx/video_driver.h"
#include "../menu_display.h"
#include "../menu_driver.h"
static void *menu_display_caca_get_default_mvp(void)
{

View File

@ -19,7 +19,7 @@
#include "../../config.h"
#endif
#include "../menu_display.h"
#include "../menu_driver.h"
#include "../../retroarch.h"
#include "../../gfx/font_driver.h"

View File

@ -21,7 +21,7 @@
#include "../../config.h"
#endif
#include "../menu_display.h"
#include "../menu_driver.h"
#include "../../retroarch.h"
#include "../../gfx/font_driver.h"

View File

@ -23,7 +23,7 @@
#include "../../gfx/font_driver.h"
#include "../../gfx/video_driver.h"
#include "../menu_display.h"
#include "../menu_driver.h"
#if defined(_WIN32) && !defined(_XBOX)
#include "../../gfx/common/win32_common.h"

View File

@ -24,7 +24,7 @@
#include "../../gfx/video_driver.h"
#include "../../gfx/common/gl_common.h"
#include "../menu_display.h"
#include "../menu_driver.h"
static const GLfloat gl_vertexes[] = {
0, 0,

View File

@ -21,7 +21,7 @@
#include "../../gfx/font_driver.h"
#include "../../gfx/video_driver.h"
#include "../menu_display.h"
#include "../menu_driver.h"
static void *menu_display_null_get_default_mvp(void)
{

View File

@ -23,7 +23,7 @@
#include "../../gfx/font_driver.h"
#include "../../gfx/video_driver.h"
#include "../menu_display.h"
#include "../menu_driver.h"
static void *menu_display_vga_get_default_mvp(void)
{

View File

@ -21,7 +21,7 @@
#include "../../config.h"
#endif
#include "../menu_display.h"
#include "../menu_driver.h"
#include "../../retroarch.h"
#include "../../gfx/font_driver.h"

View File

@ -20,7 +20,7 @@
#include "../../config.h"
#endif
#include "../menu_display.h"
#include "../menu_driver.h"
#include "../../gfx/font_driver.h"
#include "../../gfx/video_driver.h"

View File

@ -26,7 +26,6 @@
#include "menu_content.h"
#include "menu_driver.h"
#include "menu_display.h"
#include "menu_shader.h"
#include "../core_info.h"

File diff suppressed because it is too large Load Diff

View File

@ -1,317 +0,0 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2011-2017 - Daniel De Matteis
* Copyright (C) 2014-2017 - Jean-André Santoni
* 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 __MENU_DISPLAY_H__
#define __MENU_DISPLAY_H__
#include <stdint.h>
#include <stdlib.h>
#include <boolean.h>
#include <retro_common_api.h>
#include <gfx/math/matrix_4x4.h>
#include "../file_path_special.h"
#include "../gfx/font_driver.h"
#include "../gfx/video_driver.h"
#include "../gfx/video_coord_array.h"
RETRO_BEGIN_DECLS
enum materialui_color_theme
{
MATERIALUI_THEME_BLUE = 0,
MATERIALUI_THEME_BLUE_GREY,
MATERIALUI_THEME_DARK_BLUE,
MATERIALUI_THEME_GREEN,
MATERIALUI_THEME_RED,
MATERIALUI_THEME_YELLOW,
MATERIALUI_THEME_NVIDIA_SHIELD,
MATERIALUI_THEME_LAST
};
enum xmb_color_theme
{
XMB_THEME_LEGACY_RED = 0,
XMB_THEME_DARK_PURPLE,
XMB_THEME_MIDNIGHT_BLUE,
XMB_THEME_GOLDEN,
XMB_THEME_ELECTRIC_BLUE,
XMB_THEME_APPLE_GREEN,
XMB_THEME_UNDERSEA,
XMB_THEME_VOLCANIC_RED,
XMB_THEME_DARK,
XMB_THEME_WALLPAPER,
XMB_THEME_LAST
};
enum xmb_icon_theme
{
XMB_ICON_THEME_MONOCHROME = 0,
XMB_ICON_THEME_FLATUI,
XMB_ICON_THEME_RETROACTIVE,
XMB_ICON_THEME_PIXEL,
XMB_ICON_THEME_NEOACTIVE,
XMB_ICON_THEME_SYSTEMATIC,
XMB_ICON_THEME_DOTART,
XMB_ICON_THEME_CUSTOM,
XMB_ICON_THEME_LAST
};
enum xmb_shader_pipeline
{
XMB_SHADER_PIPELINE_WALLPAPER = 0,
XMB_SHADER_PIPELINE_SIMPLE_RIBBON,
XMB_SHADER_PIPELINE_RIBBON,
XMB_SHADER_PIPELINE_SIMPLE_SNOW,
XMB_SHADER_PIPELINE_SNOW,
XMB_SHADER_PIPELINE_BOKEH,
XMB_SHADER_PIPELINE_LAST
};
enum menu_display_prim_type
{
MENU_DISPLAY_PRIM_NONE = 0,
MENU_DISPLAY_PRIM_TRIANGLESTRIP,
MENU_DISPLAY_PRIM_TRIANGLES
};
enum menu_display_driver_type
{
MENU_VIDEO_DRIVER_GENERIC = 0,
MENU_VIDEO_DRIVER_OPENGL,
MENU_VIDEO_DRIVER_VULKAN,
MENU_VIDEO_DRIVER_DIRECT3D,
MENU_VIDEO_DRIVER_VITA2D,
MENU_VIDEO_DRIVER_CTR,
MENU_VIDEO_DRIVER_CACA,
MENU_VIDEO_DRIVER_GDI,
MENU_VIDEO_DRIVER_VGA
};
typedef struct menu_display_ctx_clearcolor
{
float r;
float g;
float b;
float a;
} menu_display_ctx_clearcolor_t;
typedef struct menu_display_frame_info
{
bool shadows_enable;
} menu_display_frame_info_t;
typedef struct menu_display_ctx_draw
{
float x;
float y;
unsigned width;
unsigned height;
struct video_coords *coords;
void *matrix_data;
uintptr_t texture;
enum menu_display_prim_type prim_type;
float *color;
const float *vertex;
const float *tex_coord;
size_t vertex_count;
struct
{
unsigned id;
const void *backend_data;
size_t backend_data_size;
bool active;
} pipeline;
} menu_display_ctx_draw_t;
typedef struct menu_display_ctx_rotate_draw
{
math_matrix_4x4 *matrix;
float rotation;
float scale_x;
float scale_y;
float scale_z;
bool scale_enable;
} menu_display_ctx_rotate_draw_t;
typedef struct menu_display_ctx_coord_draw
{
const float *ptr;
} menu_display_ctx_coord_draw_t;
typedef struct menu_display_ctx_datetime
{
char *s;
size_t len;
unsigned time_mode;
} menu_display_ctx_datetime_t;
typedef struct menu_display_ctx_driver
{
void (*draw)(void *data);
void (*draw_pipeline)(void *data);
void (*viewport)(void *data);
void (*blend_begin)(void);
void (*blend_end)(void);
void (*restore_clear_color)(void);
void (*clear_color)(menu_display_ctx_clearcolor_t *clearcolor);
void *(*get_default_mvp)(void);
const float *(*get_default_vertices)(void);
const float *(*get_default_tex_coords)(void);
bool (*font_init_first)(
void **font_handle, void *video_data,
const char *font_path, float font_size,
bool is_threaded);
enum menu_display_driver_type type;
const char *ident;
} menu_display_ctx_driver_t;
typedef struct menu_display_ctx_font
{
const char *path;
float size;
} menu_display_ctx_font_t;
typedef uintptr_t menu_texture_item;
enum menu_toggle_reason
{
MENU_TOGGLE_REASON_NONE = 0,
MENU_TOGGLE_REASON_USER,
MENU_TOGGLE_REASON_MESSAGE
};
enum menu_toggle_reason menu_display_toggle_get_reason(void);
void menu_display_toggle_set_reason(enum menu_toggle_reason reason);
void menu_display_blend_begin(void);
void menu_display_blend_end(void);
void menu_display_font_free(font_data_t *font);
void menu_display_font_bind_block(font_data_t *font, void *block);
bool menu_display_font_flush_block(unsigned width, unsigned height, font_data_t *font);
void menu_display_framebuffer_deinit(void);
void menu_display_deinit(void);
bool menu_display_init(void);
void menu_display_coords_array_reset(void);
video_coord_array_t *menu_display_get_coords_array(void);
const uint8_t *menu_display_get_font_framebuffer(void);
void menu_display_set_font_framebuffer(const uint8_t *buffer);
bool menu_display_libretro(bool is_idle, bool is_inited, bool is_dummy);
void menu_display_set_width(unsigned width);
void menu_display_get_fb_size(unsigned *fb_width, unsigned *fb_height,
size_t *fb_pitch);
void menu_display_set_height(unsigned height);
void menu_display_set_header_height(unsigned height);
unsigned menu_display_get_header_height(void);
size_t menu_display_get_framebuffer_pitch(void);
void menu_display_set_framebuffer_pitch(size_t pitch);
bool menu_display_get_msg_force(void);
void menu_display_set_msg_force(bool state);
bool menu_display_get_font_data_init(void);
void menu_display_set_font_data_init(bool state);
bool menu_display_get_update_pending(void);
void menu_display_set_viewport(unsigned width, unsigned height);
void menu_display_unset_viewport(unsigned width, unsigned height);
bool menu_display_get_framebuffer_dirty_flag(void);
void menu_display_set_framebuffer_dirty_flag(void);
void menu_display_unset_framebuffer_dirty_flag(void);
float menu_display_get_dpi(void);
bool menu_display_init_first_driver(bool video_is_threaded);
bool menu_display_restore_clear_color(void);
void menu_display_clear_color(menu_display_ctx_clearcolor_t *color);
void menu_display_draw(menu_display_ctx_draw_t *draw);
void menu_display_draw_pipeline(menu_display_ctx_draw_t *draw);
void menu_display_draw_bg(
menu_display_ctx_draw_t *draw,
video_frame_info_t *video_info,
bool add_opacity);
void menu_display_draw_gradient(
menu_display_ctx_draw_t *draw,
video_frame_info_t *video_info);
void menu_display_draw_quad(int x, int y, unsigned w, unsigned h,
unsigned width, unsigned height,
float *color);
void menu_display_draw_texture(int x, int y, unsigned w, unsigned h,
unsigned width, unsigned height,
float *color, uintptr_t texture);
void menu_display_draw_texture_slice(int x, int y, unsigned w, unsigned h,
unsigned new_w, unsigned new_h, unsigned width, unsigned height,
float *color, unsigned offset, float scale_factor, uintptr_t texture);
void menu_display_rotate_z(menu_display_ctx_rotate_draw_t *draw);
bool menu_display_get_tex_coords(menu_display_ctx_coord_draw_t *draw);
void menu_display_timedate(menu_display_ctx_datetime_t *datetime);
void menu_display_handle_wallpaper_upload(void *task_data,
void *user_data, const char *err);
void menu_display_handle_thumbnail_upload(void *task_data,
void *user_data, const char *err);
void menu_display_handle_savestate_thumbnail_upload(void *task_data,
void *user_data, const char *err);
void menu_display_push_quad(
unsigned width, unsigned height,
const float *colors, int x1, int y1,
int x2, int y2);
void menu_display_snow(int width, int height);
void menu_display_allocate_white_texture(void);
void menu_display_draw_cursor(
float *color, float cursor_size, uintptr_t texture,
float x, float y, unsigned width, unsigned height);
void menu_display_draw_text(
const font_data_t *font, const char *text,
float x, float y, int width, int height,
uint32_t color, enum text_alignment text_align,
float scale_factor, bool shadows_enable, float shadow_offset);
void menu_display_set_alpha(float *color, float alpha_value);
font_data_t *menu_display_font(enum application_special_type type, float font_size,
bool video_is_threaded);
void menu_display_reset_textures_list(const char *texture_path, const char *iconpath,
uintptr_t *item, enum texture_filter_type filter_type);
extern uintptr_t menu_display_white_texture;
extern menu_display_ctx_driver_t menu_display_ctx_gl;
extern menu_display_ctx_driver_t menu_display_ctx_vulkan;
extern menu_display_ctx_driver_t menu_display_ctx_d3d;
extern menu_display_ctx_driver_t menu_display_ctx_vita2d;
extern menu_display_ctx_driver_t menu_display_ctx_ctr;
extern menu_display_ctx_driver_t menu_display_ctx_caca;
extern menu_display_ctx_driver_t menu_display_ctx_gdi;
extern menu_display_ctx_driver_t menu_display_ctx_vga;
extern menu_display_ctx_driver_t menu_display_ctx_null;
RETRO_END_DECLS
#endif

File diff suppressed because it is too large Load Diff

View File

@ -26,12 +26,16 @@
#include <boolean.h>
#include <retro_common_api.h>
#include <gfx/math/matrix_4x4.h>
#include "widgets/menu_entry.h"
#include "menu_input.h"
#include "menu_entries.h"
#include "../gfx/video_driver.h"
#include "../file_path_special.h"
#include "../gfx/font_driver.h"
#include "../gfx/video_coord_array.h"
RETRO_BEGIN_DECLS
@ -206,6 +210,98 @@ enum menu_settings_type
MENU_SETTINGS_LAST
};
enum materialui_color_theme
{
MATERIALUI_THEME_BLUE = 0,
MATERIALUI_THEME_BLUE_GREY,
MATERIALUI_THEME_DARK_BLUE,
MATERIALUI_THEME_GREEN,
MATERIALUI_THEME_RED,
MATERIALUI_THEME_YELLOW,
MATERIALUI_THEME_NVIDIA_SHIELD,
MATERIALUI_THEME_LAST
};
enum xmb_color_theme
{
XMB_THEME_LEGACY_RED = 0,
XMB_THEME_DARK_PURPLE,
XMB_THEME_MIDNIGHT_BLUE,
XMB_THEME_GOLDEN,
XMB_THEME_ELECTRIC_BLUE,
XMB_THEME_APPLE_GREEN,
XMB_THEME_UNDERSEA,
XMB_THEME_VOLCANIC_RED,
XMB_THEME_DARK,
XMB_THEME_WALLPAPER,
XMB_THEME_LAST
};
enum xmb_icon_theme
{
XMB_ICON_THEME_MONOCHROME = 0,
XMB_ICON_THEME_FLATUI,
XMB_ICON_THEME_RETROACTIVE,
XMB_ICON_THEME_PIXEL,
XMB_ICON_THEME_NEOACTIVE,
XMB_ICON_THEME_SYSTEMATIC,
XMB_ICON_THEME_DOTART,
XMB_ICON_THEME_CUSTOM,
XMB_ICON_THEME_LAST
};
enum xmb_shader_pipeline
{
XMB_SHADER_PIPELINE_WALLPAPER = 0,
XMB_SHADER_PIPELINE_SIMPLE_RIBBON,
XMB_SHADER_PIPELINE_RIBBON,
XMB_SHADER_PIPELINE_SIMPLE_SNOW,
XMB_SHADER_PIPELINE_SNOW,
XMB_SHADER_PIPELINE_BOKEH,
XMB_SHADER_PIPELINE_LAST
};
enum menu_display_prim_type
{
MENU_DISPLAY_PRIM_NONE = 0,
MENU_DISPLAY_PRIM_TRIANGLESTRIP,
MENU_DISPLAY_PRIM_TRIANGLES
};
enum menu_display_driver_type
{
MENU_VIDEO_DRIVER_GENERIC = 0,
MENU_VIDEO_DRIVER_OPENGL,
MENU_VIDEO_DRIVER_VULKAN,
MENU_VIDEO_DRIVER_DIRECT3D,
MENU_VIDEO_DRIVER_VITA2D,
MENU_VIDEO_DRIVER_CTR,
MENU_VIDEO_DRIVER_CACA,
MENU_VIDEO_DRIVER_GDI,
MENU_VIDEO_DRIVER_VGA
};
enum menu_toggle_reason
{
MENU_TOGGLE_REASON_NONE = 0,
MENU_TOGGLE_REASON_USER,
MENU_TOGGLE_REASON_MESSAGE
};
typedef struct menu_display_ctx_clearcolor
{
float r;
float g;
float b;
float a;
} menu_display_ctx_clearcolor_t;
typedef struct menu_display_frame_info
{
bool shadows_enable;
} menu_display_frame_info_t;
typedef struct
{
char deferred_path[PATH_MAX_LENGTH];
@ -221,6 +317,57 @@ typedef struct
char db_playlist_file[PATH_MAX_LENGTH];
} menu_handle_t;
typedef struct menu_display_ctx_draw
{
float x;
float y;
unsigned width;
unsigned height;
struct video_coords *coords;
void *matrix_data;
uintptr_t texture;
enum menu_display_prim_type prim_type;
float *color;
const float *vertex;
const float *tex_coord;
size_t vertex_count;
struct
{
unsigned id;
const void *backend_data;
size_t backend_data_size;
bool active;
} pipeline;
} menu_display_ctx_draw_t;
typedef struct menu_display_ctx_rotate_draw
{
math_matrix_4x4 *matrix;
float rotation;
float scale_x;
float scale_y;
float scale_z;
bool scale_enable;
} menu_display_ctx_rotate_draw_t;
typedef struct menu_display_ctx_coord_draw
{
const float *ptr;
} menu_display_ctx_coord_draw_t;
typedef struct menu_display_ctx_datetime
{
char *s;
size_t len;
unsigned time_mode;
} menu_display_ctx_datetime_t;
typedef struct menu_display_ctx_font
{
const char *path;
float size;
} menu_display_ctx_font_t;
typedef struct menu_ctx_driver
{
void (*set_texture)(void);
@ -417,6 +564,144 @@ size_t menu_navigation_get_selection(void);
void menu_navigation_set_selection(size_t val);
typedef struct menu_display_ctx_driver
{
void (*draw)(void *data);
void (*draw_pipeline)(void *data);
void (*viewport)(void *data);
void (*blend_begin)(void);
void (*blend_end)(void);
void (*restore_clear_color)(void);
void (*clear_color)(menu_display_ctx_clearcolor_t *clearcolor);
void *(*get_default_mvp)(void);
const float *(*get_default_vertices)(void);
const float *(*get_default_tex_coords)(void);
bool (*font_init_first)(
void **font_handle, void *video_data,
const char *font_path, float font_size,
bool is_threaded);
enum menu_display_driver_type type;
const char *ident;
} menu_display_ctx_driver_t;
typedef uintptr_t menu_texture_item;
enum menu_toggle_reason menu_display_toggle_get_reason(void);
void menu_display_toggle_set_reason(enum menu_toggle_reason reason);
void menu_display_blend_begin(void);
void menu_display_blend_end(void);
void menu_display_font_free(font_data_t *font);
void menu_display_font_bind_block(font_data_t *font, void *block);
bool menu_display_font_flush_block(unsigned width, unsigned height, font_data_t *font);
void menu_display_framebuffer_deinit(void);
void menu_display_deinit(void);
bool menu_display_init(void);
void menu_display_coords_array_reset(void);
video_coord_array_t *menu_display_get_coords_array(void);
const uint8_t *menu_display_get_font_framebuffer(void);
void menu_display_set_font_framebuffer(const uint8_t *buffer);
bool menu_display_libretro(bool is_idle, bool is_inited, bool is_dummy);
void menu_display_set_width(unsigned width);
void menu_display_get_fb_size(unsigned *fb_width, unsigned *fb_height,
size_t *fb_pitch);
void menu_display_set_height(unsigned height);
void menu_display_set_header_height(unsigned height);
unsigned menu_display_get_header_height(void);
size_t menu_display_get_framebuffer_pitch(void);
void menu_display_set_framebuffer_pitch(size_t pitch);
bool menu_display_get_msg_force(void);
void menu_display_set_msg_force(bool state);
bool menu_display_get_font_data_init(void);
void menu_display_set_font_data_init(bool state);
bool menu_display_get_update_pending(void);
void menu_display_set_viewport(unsigned width, unsigned height);
void menu_display_unset_viewport(unsigned width, unsigned height);
bool menu_display_get_framebuffer_dirty_flag(void);
void menu_display_set_framebuffer_dirty_flag(void);
void menu_display_unset_framebuffer_dirty_flag(void);
float menu_display_get_dpi(void);
bool menu_display_init_first_driver(bool video_is_threaded);
bool menu_display_restore_clear_color(void);
void menu_display_clear_color(menu_display_ctx_clearcolor_t *color);
void menu_display_draw(menu_display_ctx_draw_t *draw);
void menu_display_draw_pipeline(menu_display_ctx_draw_t *draw);
void menu_display_draw_bg(
menu_display_ctx_draw_t *draw,
video_frame_info_t *video_info,
bool add_opacity);
void menu_display_draw_gradient(
menu_display_ctx_draw_t *draw,
video_frame_info_t *video_info);
void menu_display_draw_quad(int x, int y, unsigned w, unsigned h,
unsigned width, unsigned height,
float *color);
void menu_display_draw_texture(int x, int y, unsigned w, unsigned h,
unsigned width, unsigned height,
float *color, uintptr_t texture);
void menu_display_draw_texture_slice(int x, int y, unsigned w, unsigned h,
unsigned new_w, unsigned new_h, unsigned width, unsigned height,
float *color, unsigned offset, float scale_factor, uintptr_t texture);
void menu_display_rotate_z(menu_display_ctx_rotate_draw_t *draw);
bool menu_display_get_tex_coords(menu_display_ctx_coord_draw_t *draw);
void menu_display_timedate(menu_display_ctx_datetime_t *datetime);
void menu_display_handle_wallpaper_upload(void *task_data,
void *user_data, const char *err);
void menu_display_handle_thumbnail_upload(void *task_data,
void *user_data, const char *err);
void menu_display_handle_savestate_thumbnail_upload(void *task_data,
void *user_data, const char *err);
void menu_display_push_quad(
unsigned width, unsigned height,
const float *colors, int x1, int y1,
int x2, int y2);
void menu_display_snow(int width, int height);
void menu_display_allocate_white_texture(void);
void menu_display_draw_cursor(
float *color, float cursor_size, uintptr_t texture,
float x, float y, unsigned width, unsigned height);
void menu_display_draw_text(
const font_data_t *font, const char *text,
float x, float y, int width, int height,
uint32_t color, enum text_alignment text_align,
float scale_factor, bool shadows_enable, float shadow_offset);
void menu_display_set_alpha(float *color, float alpha_value);
font_data_t *menu_display_font(enum application_special_type type, float font_size,
bool video_is_threaded);
void menu_display_reset_textures_list(const char *texture_path, const char *iconpath,
uintptr_t *item, enum texture_filter_type filter_type);
extern uintptr_t menu_display_white_texture;
extern menu_display_ctx_driver_t menu_display_ctx_gl;
extern menu_display_ctx_driver_t menu_display_ctx_vulkan;
extern menu_display_ctx_driver_t menu_display_ctx_d3d;
extern menu_display_ctx_driver_t menu_display_ctx_vita2d;
extern menu_display_ctx_driver_t menu_display_ctx_ctr;
extern menu_display_ctx_driver_t menu_display_ctx_caca;
extern menu_display_ctx_driver_t menu_display_ctx_gdi;
extern menu_display_ctx_driver_t menu_display_ctx_vga;
extern menu_display_ctx_driver_t menu_display_ctx_null;
extern menu_ctx_driver_t menu_ctx_xui;
extern menu_ctx_driver_t menu_ctx_rgui;
extern menu_ctx_driver_t menu_ctx_mui;

View File

@ -31,7 +31,6 @@
#include "menu_driver.h"
#include "menu_animation.h"
#include "menu_display.h"
#include "../configuration.h"
#include "../retroarch.h"

View File

@ -54,7 +54,6 @@
#include "menu_setting.h"
#include "menu_driver.h"
#include "menu_animation.h"
#include "menu_display.h"
#include "menu_input.h"
#include "../core.h"

View File

@ -27,7 +27,6 @@
#include "menu_dialog.h"
#include "../menu_display.h"
#include "../menu_driver.h"
#include "../../retroarch.h"

View File

@ -60,7 +60,6 @@
#ifdef HAVE_MENU
#include "menu/menu_driver.h"
#include "menu/menu_display.h"
#include "menu/menu_event.h"
#include "menu/widgets/menu_dialog.h"
#endif