]> 4ch.mooo.com Git - 16.git/blob - 16/xlib/XCLIPPBM.H
added xlib to the project and i gotta convert the damn makefile -.-
[16.git] / 16 / xlib / XCLIPPBM.H
1 /*-----------------------------------------------------------------------\r
2 ; MODULE XCLIPPBM\r
3 ;\r
4 ; This module was written by Matthew MacKenzie\r
5 ; matm@eng.umd.edu\r
6 ;\r
7 ; Clipped transfer of planar bitmaps from system memory to video memory.\r
8 ;\r
9 ; Compile with TASM.\r
10 ; C near-callable.\r
11 ;\r
12 ; ****** XLIB - Mode X graphics library                ****************\r
13 ; ******                                               ****************\r
14 ; ****** Written By Themie Gouthas                     ****************\r
15 ;\r
16 ;  Terminology & notes:\r
17 ;         VRAM ==   Video RAM\r
18 ;         SRAM ==   System RAM\r
19 ;         X coordinates are in pixels unless explicitly stated\r
20 ;\r
21 ;----------------------------------------------------------------------*/\r
22 \r
23 #ifndef _XCLIPPBM_H_\r
24 #define _XCLIPPBM_H_\r
25 \r
26 /* unlike most global variables in Xlib, these are meant to be written to;\r
27    in fact they start off uninitialized -- all values are in pixels */\r
28 extern int TopBound;\r
29 extern int BottomBound;\r
30 extern int LeftBound;\r
31 extern int RightBound;\r
32 \r
33 #ifdef __cplusplus\r
34 extern "C" {\r
35 #endif\r
36 \r
37 \r
38 /* for both functions, a return value of 1 indicates that the entire\r
39 bitmap was outside the bounding box, while a value of 0 means that\r
40 something may have ended up on the screen */\r
41 \r
42 /* copies a planar bitmap from SRAM to VRAM, with clipping */\r
43 \r
44  int x_clip_pbm (int X, int Y, int ScreenOffs, char far * Bitmap);\r
45 \r
46 /* copies a planar bitmap from SRAM to VRAM, with clipping -- 0 bytes\r
47    in the bitmap are not copied */\r
48 \r
49  int x_clip_masked_pbm (int X, int Y, int ScreenOffs, char far * Bitmap);\r
50 \r
51 #ifdef __cplusplus\r
52 }\r
53 #endif\r
54 \r
55 \r
56 #endif\r