OSDN Git Service

update todo list with new stuff
[proj16/16.git] / 16 / xlib / xpal.h
1 /*-----------------------------------------------------------------------\r
2 ;\r
3 ; XPAL - 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 _XPAL_H_\r
22 #define _XPAL_H_\r
23 \r
24 #define PAL_ROTATE_DOWN 0\r
25 #define PAL_ROTATE_UP   1\r
26 \r
27 /* FUNCTIONS =========================================================== */\r
28 \r
29 #ifdef __cplusplus\r
30 extern "C" {\r
31 #endif\r
32 \r
33 \r
34  void x_get_pal_raw(       /* Read DAC palette into raw buffer       */\r
35               BYTE far * pal,\r
36               WORD num_colrs,\r
37               WORD start_index);\r
38 \r
39  void x_get_pal_struc(     /* Read DAC palette into annotated buffer */\r
40               BYTE far * pal,\r
41               WORD num_colrs,\r
42               WORD start_index);\r
43 \r
44  void x_put_pal_raw(       /* Write DAC palette from raw buffer      */\r
45               BYTE far * pal,\r
46               WORD num_colrs,\r
47               WORD start_index);\r
48 \r
49  void x_put_pal_struc(     /* Write DAC palette from annotated buffer*/\r
50               BYTE far * pal);\r
51 \r
52  x_set_rgb(                /* Set the RGB components of a color index*/\r
53               BYTE color,\r
54               BYTE red_c,\r
55               BYTE green_c,\r
56               BYTE blue_c);\r
57 \r
58  x_rot_pal_raw(           /* Rotate a raw palette buffer             */\r
59               BYTE far * pal,\r
60               WORD direction,\r
61               WORD num_colrs);\r
62 \r
63  void x_rot_pal_struc(    /* Rotate an anottated palette buffer      */\r
64               BYTE far * pal,\r
65               WORD direction);\r
66 \r
67  WORD x_cpcontrast_pal_struc(     /* Copy and contrast adjust annotated  */\r
68               BYTE far *src_pal,  /*  palette buffer                     */\r
69               BYTE far *dest_pal,\r
70               BYTE Intensity);\r
71 \r
72  void x_transpose_pal_struc(  /* Write DAC palette from annotated type*/\r
73               BYTE far * pal, /* buffer with a new offset             */\r
74               WORD StartColor);\r
75 \r
76  void x_put_contrast_pal_struc( /* Write DAC palette from annotated */\r
77               BYTE far * pal,   /* type buffer with specified intensity  */\r
78               BYTE  intensity);\r
79 \r
80 #ifdef __cplusplus\r
81 }\r
82 #endif\r
83 \r
84 \r
85 #endif\r
86 \r
87 \r