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

📄 svgademo.h

📁 MSC或BC开发的SVGA图形开发库(允许使用300x200,640x480,80x600,1024x768等多种模式) 此开发库特别适合嵌入式系统
💻 H
字号:
/****************************************************************************
	 
	  'SVGACC' A Super Vga Graphics Library for use with Microsoft and
	  Borland C/C++
	  Copyright 1993-1994 by Stephen L. Balkum and Daniel A. Sill

	  GIF and 'Graphics Intechange Format' are trademarks (tm) of
	  Compuserve, Incorporated, an H&R Block Company.

	**************** UNREGISTERD SHAREWARE VERSION ***********************
	* FOR EVUALATION ONLY. NOT FOR RESALE IN ANY FORM. SOFTWARE WRITTEN  *
	* USING THIS UNREGISTERED SHAREWARE GRAPHICS LIBRARY MAY NOT BY SOLD *
	* OR USED FOR ANY PURPOSE OTHER THAN THE EVUALTION OF THIS LIBRARY.  *
	**********************************************************************

	**************** NO WARRANTIES AND NO LIABILITY **********************
	* Stephen L. Balkum and Daniel A. Sill provide no warranties, either *
	* expressed or implied, of merchantability, or fitness, for a        *
	* particular use or purpose of this SOFTWARE and documentation.      *
	* In no event shall Stephen L. Balkum or Daniel A. Sill be held      *
	* liable for any damages resulting from the use or misuse of the     * 
	* SOFTWARE and documentation.                                        *
	**********************************************************************

	************** U.S. GOVERNMENT RESTRICTED RIGHTS *********************
	* Use, duplication, or disclosure of the SOFTWARE and documentation  *
	* by the U.S. Government is subject to the restictions as set forth  *
	* in subparagraph (c)(1)(ii) of the Rights in Technical Data and     *
	* Computer Software cluse at DFARS 252.227-7013.                     *
	* Contractor/manufacturer is Stephen L. Balkum and Daniel A. Sill,   *
	* P.O. Box 7704, Austin, Texas 78713-7704                            *
	**********************************************************************

	**********************************************************************
	* By using this SOFTWARE or documentation, you agree to the above    *
	* terms and conditions.                                              *
	**********************************************************************

 ***************************************************************************/

#define TITLEN 85

#ifdef MODULE

extern endit;
extern PaletteData orgpal, pal, pal2;
extern MouseCursor magmousecursor;
extern MouseCursor bigmousecursor;
extern MouseCursor stwmousecursor;
extern byte spritedata[];

extern char getkey(void);
extern void beep(void);

#else

int endit;
PaletteData orgpal, pal, pal2;

char getkey(void);
void doall(void);
void screenclear(void);
void screengoto(int x, int y);
void beep(void);
extern char doblock(void);
extern char doclip(void);
extern char dofill(void);
extern char dopal(void);
extern char doprims(void);
extern char doprims(void);
extern char doscroll(void);
extern char dotext(void);
extern char do2d(void);
extern char do3d(void);
extern char domouse(void);
extern char dojoystick(void);
extern char dogif(void);


/*MAGNIFIER MOUSE CURSOR DATA*/
MouseCursor magmousecursor = {
	{7},{6},
	{255,255,255,255,255,7,7,7,7,255,255,255,255,255,255,255,
	255,255,255,7,7,255,255,255,255,7,7,255,255,255,255,255,
	255,255,7,255,255,255,255,255,255,255,255,7,255,255,255,255,
	255,7,255,255,255,255,255,255,255,255,255,255,7,255,255,255,
	255,7,255,255,255,255,255,255,255,255,255,255,7,255,255,255,
	7,255,255,255,255,255,255,255,255,255,255,255,255,7,255,255,
	7,255,255,255,255,255,255,255,255,255,255,255,255,7,255,255,
	7,255,255,255,255,255,255,255,255,255,255,255,255,7,255,255,
	7,255,255,255,255,255,255,255,255,255,255,255,255,7,255,255,
	255,7,255,255,255,255,255,255,255,255,255,255,7,255,255,255,
	255,7,255,255,255,255,255,255,255,255,255,255,7,255,255,255,
	255,7,7,255,255,255,255,255,255,255,255,7,7,255,255,255,
	255,255,7,7,7,255,255,255,255,7,7,7,255,255,255,255,
	255,255,255,7,7,7,7,7,7,8,8,255,255,255,255,255,
	255,255,255,255,255,7,7,7,7,7,8,8,255,255,255,255,
	255,255,255,255,255,255,255,255,255,7,8,8,255,255,255,255,
	255,255,255,255,255,255,255,255,255,255,7,8,8,255,255,255,
	255,255,255,255,255,255,255,255,255,255,7,8,8,255,255,255,
	255,255,255,255,255,255,255,255,255,255,255,7,8,8,255,255,
	255,255,255,255,255,255,255,255,255,255,255,7,8,8,255,255,
	255,255,255,255,255,255,255,255,255,255,255,255,7,8,8,255,
	255,255,255,255,255,255,255,255,255,255,255,255,7,8,8,255,
	255,255,255,255,255,255,255,255,255,255,255,255,255,7,8,8,
	255,255,255,255,255,255,255,255,255,255,255,255,255,7,7,7}
};


/*BIG ARROW MOUSE CURSOR DATA*/
MouseCursor bigmousecursor = {
	{1},{1},
	{0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,
	0,15,15,0,0,255,255,255,255,255,255,255,255,255,255,255,
	0,15,15,15,15,0,0,0,255,255,255,255,255,255,255,255,
	0,15,15,15,15,15,15,15,0,0,255,255,255,255,255,255,
	0,15,15,15,15,15,15,15,15,15,0,0,0,255,255,255,
	0,15,15,15,15,15,15,15,15,15,15,15,15,0,0,255,
	0,15,15,15,15,15,15,15,15,15,15,15,15,15,0,255,
	0,15,15,15,15,15,15,15,15,15,15,15,0,0,255,255,
	0,15,15,15,15,15,15,15,15,15,15,0,255,255,255,255,
	0,15,15,15,15,15,15,15,15,0,0,255,255,255,255,255,
	0,15,15,15,15,15,15,15,15,0,255,255,255,255,255,255,
	0,15,15,15,15,15,0,15,15,15,0,255,255,255,255,255,
	0,15,15,15,15,0,0,15,15,15,0,255,255,255,255,255,
	0,15,15,0,0,255,255,0,15,15,15,0,255,255,255,255,
	0,15,0,255,255,255,255,0,15,15,15,0,255,255,255,255,
	0,0,255,255,255,255,255,255,0,15,15,15,0,255,255,255,
	255,255,255,255,255,255,255,255,255,0,15,15,15,0,255,255,
	255,255,255,255,255,255,255,255,255,0,15,15,15,0,255,255,
	255,255,255,255,255,255,255,255,255,255,0,15,15,15,0,255,
	255,255,255,255,255,255,255,255,255,255,255,0,15,15,15,0,
	255,255,255,255,255,255,255,255,255,255,255,0,15,15,15,0,
	255,255,255,255,255,255,255,255,255,255,255,255,0,15,15,0,
	255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,
	255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255}
};

/*STOP WATCH MOUSE CURSOR DATA*/
MouseCursor stwmousecursor = {
	{8},{11},
	{255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
	255,255,255,255,255,255,15,15,15,15,255,255,255,255,255,255,
	255,255,255,255,255,255,15,15,15,15,255,255,255,255,255,255,
	255,255,255,255,255,255,255,15,15,255,255,255,255,255,255,255,
	255,255,255,255,255,255,15,15,15,15,255,255,255,255,255,255,
	255,255,255,255,15,15,15,7,7,15,15,15,255,255,255,255,
	255,255,255,15,15,7,7,7,7,7,7,15,15,255,255,255,
	255,255,15,15,7,7,7,7,7,7,7,7,15,15,255,255,
	255,15,15,7,0,7,7,7,7,7,7,7,7,15,15,255,
	255,15,7,7,7,0,7,7,7,7,7,7,7,7,15,255,
	15,15,7,7,7,7,0,7,7,7,0,0,7,7,15,15,
	15,7,7,7,7,7,7,0,0,0,7,7,7,7,7,15,
	15,7,7,7,7,7,7,0,0,7,7,7,7,7,7,15,
	15,15,7,7,7,7,7,7,7,7,7,7,7,7,15,15,
	255,15,7,7,7,7,7,7,7,7,7,7,7,7,15,255,
	255,15,15,7,7,7,7,7,7,7,7,7,7,15,15,255,
	255,255,15,15,7,7,7,7,7,7,7,7,15,15,255,255,
	255,255,255,15,15,7,7,7,7,7,7,15,15,255,255,255,
	255,255,255,255,15,15,15,7,7,15,15,15,255,255,255,255,
	255,255,255,255,255,255,15,15,15,15,255,255,255,255,255,255,
	255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
	255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
	255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
	255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255}
};


#endif

⌨️ 快捷键说明

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