File: menu_display_vga.c

package info (click to toggle)
retroarch 1.7.3%2Bdfsg1-1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 49,188 kB
  • sloc: ansic: 600,492; cpp: 23,670; objc: 8,299; asm: 6,404; sh: 2,203; xml: 2,144; makefile: 1,867; python: 1,582; java: 941; perl: 393
file content (106 lines) | stat: -rw-r--r-- 2,892 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
/*  RetroArch - A frontend for libretro.
 *  Copyright (C) 2011-2016 - Daniel De Matteis
 *  Copyright (C) 2016 - 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_vga_get_default_mvp(video_frame_info_t *video_info)
{
   return NULL;
}

static void menu_display_vga_blend_begin(video_frame_info_t *video_info)
{
}

static void menu_display_vga_blend_end(video_frame_info_t *video_info)
{
}

static void menu_display_vga_draw(void *data, video_frame_info_t *video_info)
{
   (void)data;
}

static void menu_display_vga_draw_pipeline(void *data, video_frame_info_t *video_info)
{
   (void)data;
}

static void menu_display_vga_viewport(void *data, video_frame_info_t *video_info)
{
   (void)data;
}

static void menu_display_vga_restore_clear_color(void)
{
}

static void menu_display_vga_clear_color(
      menu_display_ctx_clearcolor_t *clearcolor,
      video_frame_info_t *video_info)
{
   (void)clearcolor;
}

static bool menu_display_vga_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_VGA);
   return *handle;
}

static const float *menu_display_vga_get_default_vertices(void)
{
   static float dummy[16] = {0.0f};
   return &dummy[0];
}

static const float *menu_display_vga_get_default_tex_coords(void)
{
   static float dummy[16] = {0.0f};
   return &dummy[0];
}

menu_display_ctx_driver_t menu_display_ctx_vga = {
   menu_display_vga_draw,
   menu_display_vga_draw_pipeline,
   menu_display_vga_viewport,
   menu_display_vga_blend_begin,
   menu_display_vga_blend_end,
   menu_display_vga_restore_clear_color,
   menu_display_vga_clear_color,
   menu_display_vga_get_default_mvp,
   menu_display_vga_get_default_vertices,
   menu_display_vga_get_default_tex_coords,
   menu_display_vga_font_init_first,
   MENU_VIDEO_DRIVER_VGA,
   "menu_display_vga",
   false
};