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

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

#ifndef _XBMTOOLS_H_
#define _XBMTOOLS_H_

#define BM_WIDTH_ERROR 1

#define LBMHeight(lbitmap) lbitmap[1]
#define LBMWidth(lbitmap) lbitmap[0]
#define PBMHeight(pbitmap) pbitmap[1]
#define PBMWidth(pbitmap) (pbitmap[0]<<2)
#define PBMByteWidth(pbitmap) pbitmap[0]

#define LBMPutPix(x,y,lbitmap,color) \
lbitmap[2 + (x) + (y) * LBMWidth(lbitmap)] = color

#define LBMGetPix(x,y,lbitmap) \
(lbitmap[2 + (x) + (y) * LBMWidth(lbitmap)])



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

#ifdef __cplusplus
extern "C" {
#endif

int x_pbm_to_bm( /* Convert from planar bitmap to linear */
char far * source_pbm,
char far * dest_bm);

int x_bm_to_pbm( /* Convert from linear bitmap to planar */
char far * source_pbm,
char far * dest_bm);

#ifdef __cplusplus
}
#endif


#endif




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