mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
sixel: add missing menu display driver
This commit is contained in:
parent
44859fc06e
commit
7e1074c40a
106
menu/drivers_display/menu_display_sixel.c
Normal file
106
menu/drivers_display/menu_display_sixel.c
Normal file
@ -0,0 +1,106 @@
|
||||
/* RetroArch - A frontend for libretro.
|
||||
* Copyright (C) 2011-2017 - Daniel De Matteis
|
||||
* Copyright (C) 2016-2018 - 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/>.
|
||||
*/
|
||||
|
||||
#include <time.h>
|
||||
|
||||
#include <queues/message_queue.h>
|
||||
#include <retro_miscellaneous.h>
|
||||
|
||||
#include "../../config.def.h"
|
||||
#include "../../gfx/font_driver.h"
|
||||
#include "../../gfx/video_driver.h"
|
||||
|
||||
#include "../menu_driver.h"
|
||||
|
||||
static void *menu_display_sixel_get_default_mvp(void)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void menu_display_sixel_blend_begin(void)
|
||||
{
|
||||
}
|
||||
|
||||
static void menu_display_sixel_blend_end(void)
|
||||
{
|
||||
}
|
||||
|
||||
static void menu_display_sixel_draw(void *data)
|
||||
{
|
||||
(void)data;
|
||||
}
|
||||
|
||||
static void menu_display_sixel_draw_pipeline(void *data)
|
||||
{
|
||||
(void)data;
|
||||
}
|
||||
|
||||
static void menu_display_sixel_viewport(void *data)
|
||||
{
|
||||
(void)data;
|
||||
}
|
||||
|
||||
static void menu_display_sixel_restore_clear_color(void)
|
||||
{
|
||||
}
|
||||
|
||||
static void menu_display_sixel_clear_color(menu_display_ctx_clearcolor_t *clearcolor)
|
||||
{
|
||||
(void)clearcolor;
|
||||
|
||||
menu_display_sixel_restore_clear_color();
|
||||
}
|
||||
|
||||
static bool menu_display_sixel_font_init_first(
|
||||
void **font_handle, void *video_data,
|
||||
const char *font_path, float font_size,
|
||||
bool is_threaded)
|
||||
{
|
||||
font_data_t **handle = (font_data_t**)font_handle;
|
||||
*handle = font_driver_init_first(video_data,
|
||||
font_path, font_size, true,
|
||||
is_threaded,
|
||||
FONT_DRIVER_RENDER_SIXEL);
|
||||
return *handle;
|
||||
}
|
||||
|
||||
static const float *menu_display_sixel_get_default_vertices(void)
|
||||
{
|
||||
static float dummy[16] = {0.0f};
|
||||
return &dummy[0];
|
||||
}
|
||||
|
||||
static const float *menu_display_sixel_get_default_tex_coords(void)
|
||||
{
|
||||
static float dummy[16] = {0.0f};
|
||||
return &dummy[0];
|
||||
}
|
||||
|
||||
menu_display_ctx_driver_t menu_display_ctx_sixel = {
|
||||
menu_display_sixel_draw,
|
||||
menu_display_sixel_draw_pipeline,
|
||||
menu_display_sixel_viewport,
|
||||
menu_display_sixel_blend_begin,
|
||||
menu_display_sixel_blend_end,
|
||||
menu_display_sixel_restore_clear_color,
|
||||
menu_display_sixel_clear_color,
|
||||
menu_display_sixel_get_default_mvp,
|
||||
menu_display_sixel_get_default_vertices,
|
||||
menu_display_sixel_get_default_tex_coords,
|
||||
menu_display_sixel_font_init_first,
|
||||
MENU_VIDEO_DRIVER_SIXEL,
|
||||
"menu_display_sixel",
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user