Path: blob/master/libmupen64plus/mupen64plus-video-glide64/src/m64p.h
2 views
/******************************************************************************1* Glide64 - Glide video plugin for Nintendo 64 emulators.2* http://bitbucket.org/wahrhaft/mupen64plus-video-glide64/3*4* Copyright (C) 2010 Jon Ring5*6* This program is free software; you can redistribute it and/or7* modify it under the terms of the GNU General Public License8* as published by the Free Software Foundation; either version 29* of the License, or (at your option) any later version.10*11* This program is distributed in the hope that it will be useful,12* but WITHOUT ANY WARRANTY; without even the implied warranty of13* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the14* GNU General Public License for more details.15*16* You should have received a copy of the GNU General Public License17* along with this program; if not, write to the Free Software18* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.19*****************************************************************************/2021#ifndef M64P_H22#define M64P_H2324#define M64P_PLUGIN_PROTOTYPES 125#include "m64p_types.h"26#include "m64p_common.h"27#include "m64p_plugin.h"28#include "m64p_config.h"29#include "m64p_vidext.h"30#include <stdio.h>3132#define PLUGIN_NAME "Glide64 Video Plugin"33#define PLUGIN_VERSION 0x02000034#define VIDEO_PLUGIN_API_VERSION 0x02020035#define CONFIG_API_VERSION 0x02000036#define VIDEXT_API_VERSION 0x0300003738#define VERSION_PRINTF_SPLIT(x) (((x) >> 16) & 0xffff), (((x) >> 8) & 0xff), ((x) & 0xff)39void WriteLog(m64p_msg_level level, const char *msg, ...);4041//The Glide API originally used an integer to pick an enumerated resolution.42//To accomodate arbitrary resolutions, pack it into a 32-bit struct43//so we don't have to change function signatures44union PackedScreenResolution45{46struct47{48int width : 16;49int height : 15;50int fullscreen : 1;51};52int resolution;53};545556/* definitions of pointers to Core config functions */57extern ptr_ConfigOpenSection ConfigOpenSection;58extern ptr_ConfigSetParameter ConfigSetParameter;59extern ptr_ConfigGetParameter ConfigGetParameter;60extern ptr_ConfigGetParameterHelp ConfigGetParameterHelp;61extern ptr_ConfigSetDefaultInt ConfigSetDefaultInt;62extern ptr_ConfigSetDefaultFloat ConfigSetDefaultFloat;63extern ptr_ConfigSetDefaultBool ConfigSetDefaultBool;64extern ptr_ConfigSetDefaultString ConfigSetDefaultString;65extern ptr_ConfigGetParamInt ConfigGetParamInt;66extern ptr_ConfigGetParamFloat ConfigGetParamFloat;67extern ptr_ConfigGetParamBool ConfigGetParamBool;68extern ptr_ConfigGetParamString ConfigGetParamString;6970extern ptr_ConfigGetSharedDataFilepath ConfigGetSharedDataFilepath;71extern ptr_ConfigGetUserConfigPath ConfigGetUserConfigPath;72extern ptr_ConfigGetUserDataPath ConfigGetUserDataPath;73extern ptr_ConfigGetUserCachePath ConfigGetUserCachePath;747576extern ptr_VidExt_Init CoreVideo_Init;77extern ptr_VidExt_Quit CoreVideo_Quit;78extern ptr_VidExt_ListFullscreenModes CoreVideo_ListFullscreenModes;79extern ptr_VidExt_SetVideoMode CoreVideo_SetVideoMode;80extern ptr_VidExt_SetCaption CoreVideo_SetCaption;81extern ptr_VidExt_ToggleFullScreen CoreVideo_ToggleFullScreen;82extern ptr_VidExt_ResizeWindow CoreVideo_ResizeWindow;83extern ptr_VidExt_GL_GetProcAddress CoreVideo_GL_GetProcAddress;84extern ptr_VidExt_GL_SetAttribute CoreVideo_GL_SetAttribute;85extern ptr_VidExt_GL_SwapBuffers CoreVideo_GL_SwapBuffers;8687#endif888990