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

📄 blit_5.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          */
/*                                                                       */
/*      blit_5.h                                         1.9             */
/*                                                                       */
/* COMPONENT                                                             */
/*                                                                       */
/*      All                                                              */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This file contains blit specific data structures.                */
/*                                                                       */
/* AUTHOR                                                                */
/*                                                                       */
/*      Robert G. Burrill, Accelerated Technology, Inc.                  */
/*                                                                       */
/* DATA STRUCTURES                                                       */
/*                                                                       */
/*      None                                                             */
/*                                                                       */
/* FUNCTIONS                                                             */
/*                                                                       */
/*      None                                                             */
/*                                                                       */
/* DEPENDENCIES                                                          */
/*                                                                       */
/*		None                                                             */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*		   NAME            DATE                    REMARKS               */
/*                                                                       */
/*                                                                       */
/*************************************************************************/

#include "fill_6.h"
#include "regclipv.h"

extern rect clpRect;			/* Clip rect */
extern rect srcRect;			/* source rectangle */
extern rect dstRect;			/* destination rectangle */
extern int imagRowWords;		/* (rowBytes+1)/2 */
extern int srcY;
extern int srcNextRow;			/* inc from end of row to start of next */
extern int srcPixBytes;			/* # bytes across source bitmap */
extern image *srcImag;			/* pointer to source image */
extern void (*jmpOff)(void);	/* offset to internal optimization procedure */
extern int srcOff;				/* source increment offset 0(even)/1(odd) */
extern grafMap *srcBmap;		/* ptr to src bitmap */
extern int srcBgnByte;			/* Source byte begin */
extern char maskFirst,maskLast; /* masks for first & last bytes on scan lines, */
extern char ropALU;				/*  gDataRot field for current raster op */
extern char readLast;			/*  1 if source byte needs to be read before
									writing last dest byte */
extern char loadTwo;			/*  1 if 2 source bytes must be read before
									writing first dest byte */
extern char fullRopALU;			/*  ropALU with shift field also set */
extern char flagTToB;			/*  bit 0 set for top->bottom bits, reset
									otherwise; bit 1 set for left->right
									blits, reset otherwise */
extern int shfCnt;				/* shift count (-=shfRt, +=shfLf) */
extern int flipMask;			/* 0xffff for NOT SOURCE rops, 0 else */
extern int shiftMask;			/* mask used to mix adjacent source bytes
									before ORing together writing rotated
									to dest */
extern int srcWidthBase;		/* source bitmap width */
extern int srcWidth,dstWidth;	/* temp storage for +/- source/dest bitmap widths */
extern int middleWidth;			/* # of solid bytes per row */
extern int middleSrcAdvance;	/* # of bytes from end of one middle */
extern int middleDstAdvance;	/*  row blit to start of next row */
extern int firstOffset;			/* 1 for left->right copies, -1 for
									right->left copies */
extern int lastOffset;			/* middleWidth + 1 for left->right copies.
									 -middleWidth - 1 for right->left */
extern int srcBlockAdvance;		/* distance to the start of the next source
									block of rows */
extern int dstBlockAdvance;		/* distance to the start of the next dest
									block of rows */
extern char drawFirstByte;		/* 1 if first byte on line != 0xff, 0 if it is */
extern char drawLastByte;		/* 1 if last byte on line != 0xff, 0 if it is */
extern char RNMOddByte;			/* 1 if width is odd in RNM3, 0 if width is even */
extern char copyLeftToRight;	/* 1 if copy goes left->right, 0 for right->left */
extern int oldMask,newMask;		/* masks used by RNM3 */
extern int RNMInlineEntry;		/* vector used by RNM3 */
extern int RNMPushEntry;		/* vector used by RNM3 */
extern int RNMExitVector;		/* vector used by RNM3 */
extern int RNMLoopVector;		/* vector used by RNM3 */
extern long *rowTablePtr[4];	/* pointers to row table entries */
extern int rowTableSkip;		/* used to move forward or backward through
									row tables */
extern int RNMNarrowVecto;		/* for narrow solid middle bytes, the entry
									point in the narrow handler in-line code,
									otherwise just a continuation vector */
extern byte *stackBuffer;		/* pointer to temporary buffer for one-bank blits */
extern int baseBankComboVector; /* copy of bankComboVector for multiplane use */
extern char multiplaneFlag;		/* 1 if multiplane copy in progress, 0 if single */
extern char isImage;			/* 1 if image copy in process, 0 if blit */
extern int lclBlitRop;			/* local copy of blitRop */
extern int lclPixPlanes;		/* # of planes to process */
extern long *temp1,*temp2;		/* general temporary storage */
extern long fullPnColr,fullBkColr; /* 32-bit fg/bg */
extern long tempPnColr,tempBkColr; /* working 32-bit fg/bg */
extern int initialSourceY;		/* starting src row for N->N blits */
extern int initialDestY;		/* starting dest row for 1->N and N->N blits */
extern int replaceVector;		/* aligned/non-aligned replace vector in
									1->N blits */
extern byte *dstPtr;			/* pointer to dest mem for planar->E/VGA */
extern byte *srcPtr;			/* pointer to src mem for planar->E/VGA */
extern word *dstPtr16;			/* pointer to dest 16-bit mem */
extern word *srcPtr16;			/* pointer to src 16-bit mem */
extern byte lclPenColor;		/* local pen color for line */
extern word lclPenColor16;		/* local pen color for line */
extern byte lclPenColorR;		/* local red pen color for line */
extern byte lclPenColorG;		/* local green pen color for line */
extern byte lclPenColorB;		/* local blue pen color for line */

⌨️ 快捷键说明

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