]> 4ch.mooo.com Git - 16.git/blob - 16/xlib/xpolygon.h
cleaned up the repo from debugging watcom2 ^^
[16.git] / 16 / xlib / xpolygon.h
1 /*-----------------------------------------------------------------------\r
2 ;\r
3 ; XPOLYGON - header file\r
4 ;\r
5 ;\r
6 ;\r
7 ; ****** XLIB - Mode X graphics library                ****************\r
8 ; ******                                               ****************\r
9 ; ****** Written By Themie Gouthas                     ****************\r
10 ;\r
11 ; egg@dstos3.dsto.gov.au\r
12 ; teg@bart.dsto.gov.au\r
13 ;\r
14 ;  Terminology & notes:\r
15 ;         VRAM ==   Video RAM\r
16 ;         SRAM ==   System RAM\r
17 ;         X coordinates are in pixels unless explicitly stated\r
18 ;\r
19 ;----------------------------------------------------------------------*/\r
20 \r
21 #ifndef _XPOLYGON_H_\r
22 #define _XPOLYGON_H_\r
23 \r
24 \r
25 typedef struct {\r
26   int X;\r
27   int Y;\r
28 } far VERTEX;\r
29 \r
30 /* FUNCTIONS =========================================================== */\r
31 \r
32 #ifdef __cplusplus\r
33 extern "C" {\r
34 #endif\r
35 \r
36 void x_triangle(     /* Draw a triangle */\r
37          int x0,\r
38          int y0,\r
39          int x1,\r
40          int y1,\r
41          int x2,\r
42          int y2,\r
43          WORD color,\r
44          WORD PageBase);\r
45 \r
46 void x_polygon(     /* Draw a convex polygon */\r
47          VERTEX *vertices,\r
48          int  num_vertices,\r
49          WORD color,\r
50          WORD PageBase);\r
51 \r
52 \r
53 #ifdef __cplusplus\r
54 }\r
55 #endif\r
56 \r
57 #endif\r
58 \r
59 \r