xpoint.h

来自「视频游戏开发C语言源程序」· C头文件 代码 · 共 52 行

H
52
字号
/*-----------------------------------------------------------------------
;
; XPOINT - header file
;
;
;
; ****** XLIB - Mode X graphics library                ****************
; ******                                               ****************
; ****** Written By Themie Gouthas                     ****************
;
; egg@dstos3.dsto.gov.au
; teg@bart.dsto.gov.au
;
;  Terminology & notes:
;         VRAM ==   Video RAM
;         SRAM ==   System RAM
;         X coordinates are in pixels unless explicitly stated
;
;-----------------------------------------------------------------------*/

#ifndef _XPOINT_H_
#define _XPOINT_H_


/* FUNCTIONS =========================================================== */

#ifdef __cplusplus
extern "C" {
#endif


 void x_put_pix(           /* Draw a pixel on the screen */
             WORD X,
             WORD Y,
             WORD PageOffset,
             WORD Color);

 WORD x_get_pix(          /* Read a pixel from the screen */
             WORD X,
             WORD Y,
	     WORD PageBase);


#ifdef __cplusplus
}
#endif


#endif


⌨️ 快捷键说明

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