Category : C Source Code
Archive   : XLIB06.ZIP
Filename : XPAL.H

 
Output of file : XPAL.H contained in archive : XLIB06.ZIP
/*-----------------------------------------------------------------------
;
; XPAL - header file
;
;
;
; ****** XLIB - Mode X graphics library ****************
; ****** ****************
; ****** Written By Themie Gouthas ****************
;
; [email protected]
; [email protected]
;
; Terminology & notes:
; VRAM == Video RAM
; SRAM == System RAM
; X coordinates are in pixels unless explicitly stated
;
;----------------------------------------------------------------------*/

#ifndef _XPAL_H_
#define _XPAL_H_

#define PAL_ROTATE_DOWN 0
#define PAL_ROTATE_UP 1

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

#ifdef __cplusplus
extern "C" {
#endif


void x_get_pal_raw( /* Read DAC palette into raw buffer */
BYTE far * pal,
WORD num_colrs,
WORD start_index);

void x_get_pal_struc( /* Read DAC palette into annotated buffer */
BYTE far * pal,
WORD num_colrs,
WORD start_index);

void x_put_pal_raw( /* Write DAC palette from raw buffer */
BYTE far * pal,
WORD num_colrs,
WORD start_index);

void x_put_pal_struc( /* Write DAC palette from annotated buffer*/
BYTE far * pal);

x_set_rgb( /* Set the RGB components of a color index*/
BYTE color,
BYTE red_c,
BYTE green_c,
BYTE blue_c);

x_rot_pal_raw( /* Rotate a raw palette buffer */
BYTE far * pal,
WORD direction,
WORD num_colrs);

void x_rot_pal_struc( /* Rotate an anottated palette buffer */
BYTE far * pal,
WORD direction);

WORD x_cpcontrast_pal_struc( /* Copy and contrast adjust annotated */
BYTE far *src_pal, /* palette buffer */
BYTE far *dest_pal,
BYTE Intensity);

void x_transpose_pal_struc( /* Write DAC palette from annotated type*/
BYTE far * pal, /* buffer with a new offset */
WORD StartColor);

void x_put_contrast_pal_struc( /* Write DAC palette from annotated */
BYTE far * pal, /* type buffer with specified intensity */
BYTE intensity);

#ifdef __cplusplus
}
#endif


#endif




  3 Responses to “Category : C Source Code
Archive   : XLIB06.ZIP
Filename : XPAL.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/