1/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2 * Mupen64plus - dummy_video.c *
3 * Mupen64Plus homepage: https://mupen64plus.org/ *
4 * Copyright (C) 2008 John Chadwick (NMN) *
5 * Copyright (C) 2009 Richard Goedeken *
6 * *
7 * This program is free software; you can redistribute it and/or modify *
8 * it under the terms of the GNU General Public License as published by *
9 * the Free Software Foundation; either version 2 of the License, or *
10 * (at your option) any later version. *
11 * *
12 * This program is distributed in the hope that it will be useful, *
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15 * GNU General Public License for more details. *
16 * *
17 * You should have received a copy of the GNU General Public License *
18 * along with this program; if not, write to the *
19 * Free Software Foundation, Inc., *
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
21 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
22
23#include <stdlib.h>
24
25#include "api/m64p_types.h"
26#include "dummy_video.h"
27#include "plugin.h"
28
29m64p_error dummyvideo_PluginGetVersion(m64p_plugin_type *PluginType, int *PluginVersion,
30 int *APIVersion, const char **PluginNamePtr, int *Capabilities)
31{
32 if (PluginType != NULL)
33 *PluginType = M64PLUGIN_GFX;
34
35 if (PluginVersion != NULL)
36 *PluginVersion = 0x00010000;
37
38 if (APIVersion != NULL)
39 *APIVersion = GFX_API_VERSION;
40
41 if (PluginNamePtr != NULL)
42 *PluginNamePtr = "Mupen64Plus-NoVideo";
43
44 if (Capabilities != NULL)
45 *Capabilities = 0;
46
47 return M64ERR_SUCCESS;
48}
49
50void dummyvideo_ChangeWindow (void)
51{
52
53}
54
55int dummyvideo_InitiateGFX (GFX_INFO Gfx_Info)
56{
57 return 1;
58}
59
60void dummyvideo_MoveScreen (int xpos, int ypos)
61{
62}
63
64void dummyvideo_ProcessDList(void)
65{
66
67}
68
69void dummyvideo_ProcessRDPList(void)
70{
71
72}
73
74void dummyvideo_RomClosed (void)
75{
76
77}
78
79int dummyvideo_RomOpen (void)
80{
81 return 1;
82}
83
84void dummyvideo_ShowCFB (void)
85{
86
87}
88
89void dummyvideo_UpdateScreen (void)
90{
91
92}
93
94void dummyvideo_ViStatusChanged (void)
95{
96
97}
98
99void dummyvideo_ViWidthChanged (void)
100{
101
102}
103
104void dummyvideo_ReadScreen2 (void *dest, int *width, int *height, int front)
105{
106
107}
108
109void dummyvideo_SetRenderingCallback(void (*callback)(int))
110{
111
112}
113
114void dummyvideo_FBRead(unsigned int addr)
115{
116}
117
118void dummyvideo_FBWrite(unsigned int addr, unsigned int size)
119{
120}
121
122void dummyvideo_FBGetFrameBufferInfo(void *p)
123{
124}
125
126void dummyvideo_ResizeVideoOutput(int width, int height)
127{
128}
129
130
131