home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 14 / CDACTUAL.iso / cdactual / demobin / share / program / c / XLIB04C.ZIP / XCLIPPBM.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-02-07  |  1.5 KB  |  46 lines

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