⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vidsys.h

📁 这个是延伸mame的在wince平台下的游戏模拟器的代码
💻 H
字号:
/* PocketCultMAME - MAME Emulator for PocketPC
   (c) Copyright 2006 Manuel Castrillo Mart韓ez

   This program 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 Foundation; either version 2 of the License, or
   (at your option) any later version.

   This program 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 this program; if not, write to the Free Software
   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

#ifndef _vidsysh
#define _vidsysh

#define MENU_HEIGHT		26

#define	using_nothing			0
#define	using_gdi				1
#define	using_gapi				2
#define	using_rawframebuffer	3
#define using_directdraw		4
#define	using_direct3d			5
#define using_opengl			6
#define using_i2700G_QVGAforzed	6
#define	using_unknow			8

#define	ROTATION_0		0	// Portrait
#define	ROTATION_CW90	1	// Landscape
#define	ROTATION_ACW90	2	// Landscape
#define	ROTATION_180	3	// Portrait

#define FORCE_NONE			0
#define FORCE_i2700Gqvga	1
#define FORCE_GAPI			2
#define FORCE_DDRAW			3

#define SWAP_NONE		0
#define SWAP_FLIP		1
#define SWAP_COPY		2


#ifdef __cplusplus
extern "C" {
#endif

typedef struct _VidSysInfo
{
	int		drawingMethod;
	int		displayVGA;
	void	*pOrigin;
	void	*pBitmap;
	int		xPixelsResolution;
	int		yPixelsResolution;
	int		xIncrementation;
	int		yIncrementation;
	int		Rotation;
	int		SwapMethod;
} VidSysInfo;


// Foward declarations

#ifdef __cplusplus
bool OpenDisplay( HWND hWnd, int forceGAPI );
#endif

void *BeginDraw( void );
void EndDraw(void);
int CloseDisplay();

#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -