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

📄 regclipv.h

📁 nucleus 文件系统,内核和彩色图形系统,在小系统上非常好用
💻 H
字号:
/*************************************************************************/
/*                                                                       */
/*         Copyright (c) 1997 - 1999 Accelerated Technology, Inc.        */
/*                                                                       */
/* PROPRIETARY RIGHTS of Accelerated Technology are involved in the      */
/* subject matter of this material.  All manufacturing, reproduction,    */
/* use, and sales rights pertaining to this subject matter are governed  */
/* by the license agreement.  The recipient of this software implicitly  */
/* accepts the terms of the license.                                     */
/*                                                                       */
/*************************************************************************/

/*************************************************************************/
/*                                                                       */
/* FILE NAME                                            VERSION          */
/*                                                                       */
/*      regclipv.h                                       1.9             */
/*                                                                       */
/* COMPONENT                                                             */
/*                                                                       */
/*      All                                                              */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This file contains common variables for the region-clipping      */
/* routines.                                                             */
/*                                                                       */
/* AUTHOR                                                                */
/*                                                                       */
/*      Robert G. Burrill, Accelerated Technology, Inc.                  */
/*                                                                       */
/* DATA STRUCTURES                                                       */
/*                                                                       */
/*      None                                                             */
/*                                                                       */
/* FUNCTIONS                                                             */
/*                                                                       */
/*      None                                                             */
/*                                                                       */
/* DEPENDENCIES                                                          */
/*                                                                       */
/*		None                                                             */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*		   NAME            DATE                    REMARKS               */
/*                                                                       */
/*         BobB           2/17/99     Added the NO_REGION_CLIP define    */
/*                                                                       */
/*************************************************************************/

/* define NO_REGION_CLIP to remove region clipping from the code */
//#define NO_REGION_CLIP

extern char clipToRegionFlag;	/* 1 if region clipping active, 0 else */
extern char clipToRectFlag;		/*1 if rect clipping active, 0 else */
extern char lclbfYXBanded;		/* flag that's 1 if blitRcd data is
								YXbanded */
extern char bDrawStat;			/* base copy of drawStat for region
								clipping (drawing can toggle drawStat) */
extern char drawStat;			/* for region clipping */
extern rect *nextRegionPtr;		/* pointer to region rect at which to
								start checked for the next region clip,
								going top->bottom, left->right */
extern rect *nextRegionPtrB;	/* pointer to region rect at which to
								start checked for the next region clip,
								going bottom->top, right->left */
extern rect *tempRegionPtr;		/* offset portion of pointer to region
								rect at which to resume processing after
								this band in certain cases */
extern rect bRect;				/* copy of destination rect */
extern rect dRect;				/* destination rect */
extern rect sRect;				/* source rect */
extern rect cRect;				/* clipping rect */

extern short dYminTemp,dYmaxTemp;	/* temp storage for Y extent of
								rectangle clipped to YX region band */
extern rect bsRect;				/* copy of source rect */
extern short sYminTemp,sYmaxTemp;	/* temp storage for Y extent of
								source rect clipped to YX region band */
extern int bandYmin;			/* Ymin and Ymax coordinates for */
extern int bandYmax;			/* current YX band */
extern short bcXmin,bcYmin,bcXmax,bcYmax;	/* copy of clip rect */
extern short cdXmin,cdYmin,cdXmax,cdYmax;	/* copy of dest rect, clipped
											to clip rect */
extern int blitMayOverlap;
extern int isLine;
extern int errTermL;			/* Bresenham's error term variable */
extern int errTermAdjUpL;		/* Bresenham's error term adjustment
								value when no minor axis move is made */
extern int errTermAdjDownL;		/* Bresenham's error term adjustment
								value when a minor axis move is
								made (non-negative) */
extern int majorAxisLengthM1;	/* length of line along major axis-1 */
extern int lineDir;				/* line direction after clipping:
									0 = r->l, t->b Ymajor
									1 = vertical top->bottom
									2 = l->r, t->b Ymajor
									3 = l->r, t->b diag
									4 = l->r, t->b Xmajor
									5 = horizontal left->right
									6 = r->l, t->b diag
									7 = r->l, t->b Xmajor
									<=3 means Ymajor, >=4 means Xmajor */
extern int lineEncode;			/* line tic-tac-toe encoding */

	/* Fill/Blit drawing routine */
extern void (*FillDrawer)(blitRcd *drwPRec);
	/* Line drawing routine */
extern void (*LineDrawer)(void);

⌨️ 快捷键说明

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