1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2 * Mupen64plus - dummy_video.c *
3 * Mupen64Plus homepage: http://code.google.com/p/mupen64plus/ *
4 * Copyright (C) 2008 John Chadwick (NMN) *
5 * Copyright (C) 2009 Richard Goedeken *
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. *
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. *
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 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
25 #include "api/m64p_types.h"
27 #include "dummy_video.h"
29 m64p_error dummyvideo_PluginGetVersion(m64p_plugin_type *PluginType, int *PluginVersion,
30 int *APIVersion, const char **PluginNamePtr, int *Capabilities)
32 if (PluginType != NULL)
33 *PluginType = M64PLUGIN_GFX;
35 if (PluginVersion != NULL)
36 *PluginVersion = 0x00010000;
38 if (APIVersion != NULL)
39 *APIVersion = GFX_API_VERSION;
41 if (PluginNamePtr != NULL)
42 *PluginNamePtr = "Mupen64Plus-NoVideo";
44 if (Capabilities != NULL)
47 return M64ERR_SUCCESS;
50 void dummyvideo_ChangeWindow (void)
55 int dummyvideo_InitiateGFX (GFX_INFO Gfx_Info)
60 void dummyvideo_MoveScreen (int xpos, int ypos)
64 void dummyvideo_ProcessDList(void)
69 void dummyvideo_ProcessRDPList(void)
74 void dummyvideo_RomClosed (void)
79 int dummyvideo_RomOpen (void)
84 void dummyvideo_ShowCFB (void)
89 void dummyvideo_UpdateScreen (void)
94 void dummyvideo_ViStatusChanged (void)
99 void dummyvideo_ViWidthChanged (void)
104 void dummyvideo_ReadScreen2 (void *dest, int *width, int *height, int front)
109 void dummyvideo_SetRenderingCallback(void (*callback)(int))
114 void dummyvideo_FBRead(unsigned int addr)
118 void dummyvideo_FBWrite(unsigned int addr, unsigned int size)
122 void dummyvideo_FBGetFrameBufferInfo(void *p)
126 void dummyvideo_ResizeVideoOutput(int width, int height)