2015-11-08 00:30:07 +00:00
|
|
|
/* RetroArch - A frontend for libretro.
|
2017-01-22 12:40:32 +00:00
|
|
|
* Copyright (C) 2011-2017 - Daniel De Matteis
|
2015-11-08 00:30:07 +00:00
|
|
|
*
|
|
|
|
* 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/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <time.h>
|
|
|
|
|
|
|
|
#include <queues/message_queue.h>
|
|
|
|
#include <retro_miscellaneous.h>
|
|
|
|
|
2015-12-05 11:07:22 +00:00
|
|
|
#include "../../gfx/font_driver.h"
|
2017-05-08 23:25:59 +00:00
|
|
|
#include "../../gfx/video_driver.h"
|
2015-11-08 00:30:07 +00:00
|
|
|
|
2017-05-19 13:25:14 +00:00
|
|
|
#include "../menu_driver.h"
|
2015-11-08 00:30:07 +00:00
|
|
|
|
2018-02-16 18:42:13 +00:00
|
|
|
static void *menu_display_null_get_default_mvp(video_frame_info_t *video_info)
|
2015-11-08 20:03:12 +00:00
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2018-02-16 16:19:55 +00:00
|
|
|
static void menu_display_null_blend_begin(video_frame_info_t *video_info)
|
2015-11-08 00:30:07 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2018-02-16 16:19:55 +00:00
|
|
|
static void menu_display_null_blend_end(video_frame_info_t *video_info)
|
2015-11-08 00:30:07 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2018-05-13 12:15:04 +00:00
|
|
|
static void menu_display_null_draw(menu_display_ctx_draw_t *draw,
|
|
|
|
video_frame_info_t *video_info)
|
2015-11-08 00:30:07 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2018-02-16 18:25:19 +00:00
|
|
|
static void menu_display_null_draw_pipeline(
|
2018-05-13 12:15:04 +00:00
|
|
|
menu_display_ctx_draw_t *draw, video_frame_info_t *video_info)
|
2016-04-25 11:56:12 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2018-05-13 12:15:04 +00:00
|
|
|
static void menu_display_null_viewport(menu_display_ctx_draw_t *draw,
|
|
|
|
video_frame_info_t *video_info)
|
2016-04-19 06:50:35 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2015-11-08 00:30:07 +00:00
|
|
|
static void menu_display_null_restore_clear_color(void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2018-02-16 18:25:19 +00:00
|
|
|
static void menu_display_null_clear_color(
|
|
|
|
menu_display_ctx_clearcolor_t *clearcolor,
|
|
|
|
video_frame_info_t *video_info)
|
2015-11-08 00:30:07 +00:00
|
|
|
{
|
2016-04-15 02:20:57 +00:00
|
|
|
(void)clearcolor;
|
2015-11-08 00:30:07 +00:00
|
|
|
}
|
|
|
|
|
2015-12-05 10:29:06 +00:00
|
|
|
static bool menu_display_null_font_init_first(
|
2016-02-09 15:11:37 +00:00
|
|
|
void **font_handle, void *video_data,
|
2017-04-29 14:52:52 +00:00
|
|
|
const char *font_path, float font_size,
|
|
|
|
bool is_threaded)
|
2015-11-09 21:12:32 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2016-04-15 01:31:59 +00:00
|
|
|
static const float *menu_display_null_get_default_vertices(void)
|
|
|
|
{
|
|
|
|
static float dummy[16] = {0.0f};
|
|
|
|
return &dummy[0];
|
|
|
|
}
|
|
|
|
|
|
|
|
static const float *menu_display_null_get_default_tex_coords(void)
|
|
|
|
{
|
|
|
|
static float dummy[16] = {0.0f};
|
|
|
|
return &dummy[0];
|
|
|
|
}
|
|
|
|
|
2015-11-08 00:30:07 +00:00
|
|
|
menu_display_ctx_driver_t menu_display_ctx_null = {
|
|
|
|
menu_display_null_draw,
|
2016-04-25 11:56:12 +00:00
|
|
|
menu_display_null_draw_pipeline,
|
2016-04-19 06:50:35 +00:00
|
|
|
menu_display_null_viewport,
|
2015-11-08 00:30:07 +00:00
|
|
|
menu_display_null_blend_begin,
|
|
|
|
menu_display_null_blend_end,
|
|
|
|
menu_display_null_restore_clear_color,
|
|
|
|
menu_display_null_clear_color,
|
2015-11-08 20:03:12 +00:00
|
|
|
menu_display_null_get_default_mvp,
|
2016-04-15 01:31:59 +00:00
|
|
|
menu_display_null_get_default_vertices,
|
|
|
|
menu_display_null_get_default_tex_coords,
|
2015-11-09 21:12:32 +00:00
|
|
|
menu_display_null_font_init_first,
|
2015-11-08 00:30:07 +00:00
|
|
|
MENU_VIDEO_DRIVER_GENERIC,
|
|
|
|
"menu_display_null",
|
2018-02-28 03:52:47 +00:00
|
|
|
false
|
2015-11-08 00:30:07 +00:00
|
|
|
};
|