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

📄 xclippbm.h

📁 视频游戏开发源码
💻 H
字号:
/*-----------------------------------------------------------------------
; MODULE XCLIPPBM
;
; This module was written by Matthew MacKenzie
; matm@eng.umd.edu
;
; Clipped transfer of planar bitmaps from system memory to video memory.
;
; Compile with TASM.
; C near-callable.
;
; ****** XLIB - Mode X graphics library                ****************
; ******                                               ****************
; ****** Written By Themie Gouthas                     ****************
;
;  Terminology & notes:
;         VRAM ==   Video RAM
;         SRAM ==   System RAM
;         X coordinates are in pixels unless explicitly stated
;
;----------------------------------------------------------------------*/

#ifndef _XCLIPPBM_H_
#define _XCLIPPBM_H_

/* unlike most global variables in Xlib, these are meant to be written to;
   in fact they start off uninitialized -- all values are in pixels */
extern int TopBound;
extern int BottomBound;
extern int LeftBound;
extern int RightBound;

#ifdef __cplusplus
extern "C" {
#endif


/* for both functions, a return value of 1 indicates that the entire
bitmap was outside the bounding box, while a value of 0 means that
something may have ended up on the screen */

/* copies a planar bitmap from SRAM to VRAM, with clipping */

 int x_clip_pbm (int X, int Y, int ScreenOffs, char far * Bitmap);

/* copies a planar bitmap from SRAM to VRAM, with clipping -- 0 bytes
   in the bitmap are not copied */

 int x_clip_masked_pbm (int X, int Y, int ScreenOffs, char far * Bitmap);

#ifdef __cplusplus
}
#endif


#endif

⌨️ 快捷键说明

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