📄 devc.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 */
/* */
/* devc.h 1.9 */
/* */
/* COMPONENT */
/* */
/* All */
/* */
/* DESCRIPTION */
/* */
/* This table relates the combined devTechs to a specific blit type */
/* */
/* AUTHOR */
/* */
/* Robert G. Burrill, Accelerated Technology, Inc. */
/* */
/* DATA STRUCTURES */
/* */
/* None */
/* */
/* FUNCTIONS */
/* */
/* None */
/* */
/* DEPENDENCIES */
/* */
/* None */
/* */
/* HISTORY */
/* */
/* NAME DATE REMARKS */
/* */
/* */
/*************************************************************************/
/* device manager function codes */
#define DMWAKEUP 0 /* enable for use */
#define DMGRAFIX 1 /* display graphics */
#define DMTEXT 2 /* display text */
#define DMWPAL 3 /* write palette */
#define DMRPAL 4 /* read palette */
#define DMQRY 5 /* query presence */
#define DMOVERSCAN 6 /* set overscan color */
#define DMFLIP 7 /* flip page */
#define DMRETRACE 8 /* wait for vertical retrace */
#define DMSHUTDOWN 9 /* disable for use */
/* structure of data at devParam for palette functions */
#ifdef CPU386
typedef struct _argsPalInfo{
long palNum; /* palette number */
long palBgn; /* begin color index */
long palEnd; /* end color index */
palData *palDataPtr;/* pointer to palette data */
} argsPalInfo;
#else
typedef struct _argsPalInfo{
short palNum; /* palette number */
short palBgn; /* begin color index */
short palEnd; /* end color index */
palData *palDataPtr;/* pointer to palette data */
} argsPalInfo;
#endif
typedef struct _VESAInfo{ /* VESA Function 01 - Mode Information Block */
short ModeAtt; /* mode attributes */
byte WinAAtt; /* window A attributes */
byte WinBAtt; /* window B attributes */
short WinGran; /* window granularity */
short WinSize; /* window size */
short WinASeg; /* window A start segment */
short WinBSeg; /* window B start segment */
long WinPtr; /* pointer to window function */
short BPSL; /* bytes per scan line */
short XRes; /* horizontal resolution */
short YRes; /* vertical resolution */
byte XChar; /* character cell width */
byte YChar; /* character cell height */
byte Planes; /* number of memory planes */
byte Bits; /* bits per pixel */
byte Banks; /* number of memory banks */
byte Model; /* memory model type */
byte BSize; /* bank size in kb */
byte Pages; /* number of image pages */
byte VESARsvd; /* reserved for page function */
byte VESAPad[225]; /* pad to 256 bytes */
} VESAInfo;
/* function codes for DMRETRACE */
#define statusRETRACE 0
#define enterRETRACE 1
#define enterVIDEO 2
#define inRETRACE 3
#define inVIDEO 4
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -