22726e4d |
1 | /****************************************************************************** |
2 | * Arachnoid Graphics Plugin for Mupen64Plus |
3 | * http://bitbucket.org/wahrhaft/mupen64plus-video-arachnoid/ |
4 | * |
5 | * Copyright (C) 2009 Jon Ring |
6 | * |
7 | * This program is free software; you can redistribute it and/or |
8 | * modify it under the terms of the GNU General Public License |
9 | * as published by the Free Software Foundation; either version 2 |
10 | * of the License, or (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 Free Software |
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
20 | *****************************************************************************/ |
21 | |
22 | #ifndef M64P_H |
23 | #define M64P_H |
24 | |
25 | #ifdef WIN32 |
26 | #include <windows.h> |
27 | #else |
28 | #include <stdlib.h> |
29 | #include <string.h> |
30 | |
31 | #define BOOL int |
32 | #endif |
33 | |
34 | #define M64P_PLUGIN_PROTOTYPES 1 |
35 | #include "m64p_types.h" |
36 | #include "m64p_plugin.h" |
37 | #include "m64p_config.h" |
38 | #include "m64p_vidext.h" |
39 | |
40 | /* definitions of pointers to Core config functions */ |
41 | extern ptr_ConfigOpenSection ConfigOpenSection; |
42 | extern ptr_ConfigSetParameter ConfigSetParameter; |
43 | extern ptr_ConfigGetParameter ConfigGetParameter; |
44 | extern ptr_ConfigGetParameterHelp ConfigGetParameterHelp; |
45 | extern ptr_ConfigSetDefaultInt ConfigSetDefaultInt; |
46 | extern ptr_ConfigSetDefaultFloat ConfigSetDefaultFloat; |
47 | extern ptr_ConfigSetDefaultBool ConfigSetDefaultBool; |
48 | extern ptr_ConfigSetDefaultString ConfigSetDefaultString; |
49 | extern ptr_ConfigGetParamInt ConfigGetParamInt; |
50 | extern ptr_ConfigGetParamFloat ConfigGetParamFloat; |
51 | extern ptr_ConfigGetParamBool ConfigGetParamBool; |
52 | extern ptr_ConfigGetParamString ConfigGetParamString; |
53 | |
54 | extern ptr_ConfigGetSharedDataFilepath ConfigGetSharedDataFilepath; |
55 | extern ptr_ConfigGetUserConfigPath ConfigGetUserConfigPath; |
56 | extern ptr_ConfigGetUserDataPath ConfigGetUserDataPath; |
57 | extern ptr_ConfigGetUserCachePath ConfigGetUserCachePath; |
58 | |
59 | /* definitions of pointers to Core video extension functions */ |
60 | extern ptr_VidExt_Init CoreVideo_Init; |
61 | extern ptr_VidExt_Quit CoreVideo_Quit; |
62 | extern ptr_VidExt_ListFullscreenModes CoreVideo_ListFullscreenModes; |
63 | extern ptr_VidExt_SetVideoMode CoreVideo_SetVideoMode; |
64 | extern ptr_VidExt_SetCaption CoreVideo_SetCaption; |
65 | extern ptr_VidExt_ToggleFullScreen CoreVideo_ToggleFullScreen; |
66 | extern ptr_VidExt_ResizeWindow CoreVideo_ResizeWindow; |
67 | extern ptr_VidExt_GL_GetProcAddress CoreVideo_GL_GetProcAddress; |
68 | extern ptr_VidExt_GL_SetAttribute CoreVideo_GL_SetAttribute; |
69 | extern ptr_VidExt_GL_SwapBuffers CoreVideo_GL_SwapBuffers; |
70 | |
71 | #endif |