2015-11-08 00:30:07 +00:00
|
|
|
/* RetroArch - A frontend for libretro.
|
|
|
|
* Copyright (C) 2011-2015 - Daniel De Matteis
|
|
|
|
*
|
|
|
|
* 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_renderer_driver.h"
|
|
|
|
#include "../../gfx/video_context_driver.h"
|
|
|
|
#include "../../gfx/video_thread_wrapper.h"
|
|
|
|
#include "../../gfx/video_texture.h"
|
|
|
|
|
|
|
|
#include "../menu_display.h"
|
|
|
|
|
2015-11-08 20:03:12 +00:00
|
|
|
static void *menu_display_null_get_default_mvp(void)
|
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2015-11-08 00:30:07 +00:00
|
|
|
static void menu_display_null_blend_begin(void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static void menu_display_null_blend_end(void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static void menu_display_null_draw(
|
|
|
|
unsigned x, unsigned y,
|
|
|
|
unsigned width, unsigned height,
|
|
|
|
struct gfx_coords *coords,
|
|
|
|
void *matrix_data,
|
|
|
|
uintptr_t texture,
|
|
|
|
enum menu_display_prim_type prim_type
|
|
|
|
)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static void menu_display_null_draw_bg(
|
|
|
|
unsigned width,
|
|
|
|
unsigned height,
|
|
|
|
uintptr_t texture,
|
|
|
|
float handle_alpha,
|
|
|
|
bool force_transparency,
|
|
|
|
float *coord_color,
|
|
|
|
float *coord_color2,
|
|
|
|
const float *vertex,
|
|
|
|
const float *tex_coord,
|
|
|
|
size_t vertex_count,
|
|
|
|
enum menu_display_prim_type prim_type)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static void menu_display_null_restore_clear_color(void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static void menu_display_null_clear_color(float r, float g, float b, float a)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static unsigned menu_display_null_texture_load(void *data, enum texture_filter_type type)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void menu_display_null_texture_unload(uintptr_t *id)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static const float *menu_display_null_get_tex_coords(void)
|
|
|
|
{
|
|
|
|
static float floats[1] = {1.00f};
|
|
|
|
return &floats[0];
|
|
|
|
}
|
|
|
|
|
|
|
|
menu_display_ctx_driver_t menu_display_ctx_null = {
|
|
|
|
menu_display_null_draw,
|
|
|
|
menu_display_null_draw_bg,
|
|
|
|
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,
|
2015-11-08 00:30:07 +00:00
|
|
|
menu_display_null_get_tex_coords,
|
|
|
|
menu_display_null_texture_load,
|
|
|
|
menu_display_null_texture_unload,
|
|
|
|
MENU_VIDEO_DRIVER_GENERIC,
|
|
|
|
"menu_display_null",
|
|
|
|
};
|