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

📄 xpolygon.h

📁 视频游戏开发C语言源程序
💻 H
字号:
/*-----------------------------------------------------------------------
;
; XPOLYGON - 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 _XPOLYGON_H_
#define _XPOLYGON_H_


typedef struct {
  int X;
  int Y;
} far VERTEX;

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

#ifdef __cplusplus
extern "C" {
#endif

void x_triangle(     /* Draw a triangle */
         int x0,
         int y0,
         int x1,
         int y1,
         int x2,
         int y2,
         WORD color,
         WORD PageBase);

void x_polygon(     /* Draw a convex polygon */
         VERTEX *vertices,
         int  num_vertices,
         WORD color,
         WORD PageBase);


#ifdef __cplusplus
}
#endif

#endif


⌨️ 快捷键说明

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