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

 
Output of file : XRECT.H contained in archive : XLIB06.ZIP
/*-----------------------------------------------------------------------
;
; XRECT - 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 _XRECT_H_
#define _XRECT_H_


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

#ifdef __cplusplus
extern "C" {
#endif

void x_rect_pattern( /* draw a pattern filled rectangle */
WORD StartX,
WORD StartY,
WORD EndX,
WORD EndY,
WORD PageBase,
BYTE far * Pattern);

void x_rect_pattern_clipped( /* draw a pattern filled clipped */
WORD StartX, /* rectangle */
WORD StartY,
WORD EndX,
WORD EndY,
WORD PageBase,
BYTE far * Pattern);

void x_rect_fill( /* draw a single colour filled rectangle */
WORD StartX,
WORD StartY,
WORD EndX,
WORD EndY,
WORD PageBase,
WORD color);

void x_rect_fill_clipped( /* draw a single colour filled */
WORD StartX, /* and clipped rectangle */
WORD StartY,
WORD EndX,
WORD EndY,
WORD PageBase,
WORD color);

void x_cp_vid_rect( /* Copy rect region within VRAM */
WORD SourceStartX,
WORD SourceStartY,
WORD SourceEndX,
WORD SourceEndY,
WORD DestStartX,
WORD DestStartY,
WORD SourcePageBase,
WORD DestPageBase,
WORD SourceBitmapWidth,
WORD DestBitmapWidth);

/* Copy a rectangular region of a VGA screen, with x coordinates
rounded to the nearest byte -- source and destination may overlap. */

void x_shift_rect (WORD SrcLeft, WORD SrcTop,
WORD SrcRight, WORD SrcBottom,
WORD DestLeft, WORD DestTop, WORD ScreenOffs);

#ifdef __cplusplus
}
#endif


#endif




  3 Responses to “Category : C Source Code
Archive   : XLIB06.ZIP
Filename : XRECT.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/