/* RetroArch - A frontend for libretro. * Copyright (C) 2011-2017 - 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 . */ #include #include #include #include "../../gfx/font_driver.h" #include "../../gfx/video_driver.h" #include "../menu_driver.h" static void *menu_display_null_get_default_mvp(video_frame_info_t *video_info) { return NULL; } static void menu_display_null_blend_begin(video_frame_info_t *video_info) { } static void menu_display_null_blend_end(video_frame_info_t *video_info) { } static void menu_display_null_draw(menu_display_ctx_draw_t *draw, video_frame_info_t *video_info) { } static void menu_display_null_draw_pipeline( menu_display_ctx_draw_t *draw, video_frame_info_t *video_info) { } static void menu_display_null_viewport(menu_display_ctx_draw_t *draw, video_frame_info_t *video_info) { } static void menu_display_null_restore_clear_color(void) { } static void menu_display_null_clear_color( menu_display_ctx_clearcolor_t *clearcolor, video_frame_info_t *video_info) { (void)clearcolor; } static bool menu_display_null_font_init_first( void **font_handle, void *video_data, const char *font_path, float font_size, bool is_threaded) { return true; } 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]; } menu_display_ctx_driver_t menu_display_ctx_null = { menu_display_null_draw, menu_display_null_draw_pipeline, menu_display_null_viewport, menu_display_null_blend_begin, menu_display_null_blend_end, menu_display_null_restore_clear_color, menu_display_null_clear_color, menu_display_null_get_default_mvp, menu_display_null_get_default_vertices, menu_display_null_get_default_tex_coords, menu_display_null_font_init_first, MENU_VIDEO_DRIVER_GENERIC, "menu_display_null", false };