home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / GVECTORS.ZIP / XRECT.H < prev    next >
C/C++ Source or Header  |  1993-09-13  |  2KB  |  90 lines

  1. /*-----------------------------------------------------------------------
  2. ;
  3. ; XRECT - header file
  4. ;
  5. ;
  6. ;
  7. ; ****** XLIB - Mode X graphics library                ****************
  8. ; ******                                               ****************
  9. ; ****** Written By Themie Gouthas                     ****************
  10. ;
  11. ; egg@dstos3.dsto.gov.au
  12. ; teg@bart.dsto.gov.au
  13. ;
  14. ;  Terminology & notes:
  15. ;         VRAM ==   Video RAM
  16. ;         SRAM ==   System RAM
  17. ;         X coordinates are in pixels unless explicitly stated
  18. ;
  19. ;-----------------------------------------------------------------------*/
  20.  
  21. #ifndef _XRECT_H_
  22. #define _XRECT_H_
  23.  
  24.  
  25. /* FUNCTIONS =========================================================== */
  26.  
  27. #ifdef __cplusplus
  28. extern "C" {
  29. #endif
  30.  
  31.  void x_rect_pattern(      /* draw a pattern filled rectangle      */
  32.          WORD StartX,
  33.          WORD StartY,
  34.          WORD EndX,
  35.          WORD EndY,
  36.          WORD PageBase,
  37.      BYTE far * Pattern);
  38.  
  39.  void x_rect_pattern_clipped(  /* draw a pattern filled clipped   */
  40.      WORD StartX,          /* rectangle                       */
  41.          WORD StartY,
  42.          WORD EndX,
  43.          WORD EndY,
  44.          WORD PageBase,
  45.      BYTE far * Pattern);
  46.  
  47.  void x_rect_fill(         /* draw a single colour filled rectangle */
  48.          WORD StartX,
  49.          WORD StartY,
  50.          WORD EndX,
  51.          WORD EndY,
  52.          WORD PageBase,
  53.      WORD color);
  54.  
  55.  void x_rect_fill_clipped(   /* draw a single colour filled */
  56.      WORD StartX,        /* and clipped rectangle       */
  57.          WORD StartY,
  58.          WORD EndX,
  59.          WORD EndY,
  60.          WORD PageBase,
  61.      WORD color);
  62.  
  63.  void x_cp_vid_rect(       /* Copy rect region within VRAM          */
  64.          WORD SourceStartX,
  65.          WORD SourceStartY,
  66.          WORD SourceEndX,
  67.          WORD SourceEndY,
  68.          WORD DestStartX,
  69.          WORD DestStartY,
  70.          WORD SourcePageBase,
  71.          WORD DestPageBase,
  72.          WORD SourceBitmapWidth,
  73.          WORD DestBitmapWidth);
  74.  
  75. /* Copy a rectangular region of a VGA screen, with x coordinates
  76.  rounded to the nearest byte -- source and destination may overlap. */
  77.  
  78.  void x_shift_rect (WORD SrcLeft, WORD SrcTop,
  79.               WORD SrcRight, WORD SrcBottom,
  80.               WORD DestLeft, WORD DestTop, WORD ScreenOffs);
  81.  
  82. #ifdef __cplusplus
  83. }
  84. #endif
  85.  
  86.  
  87. #endif
  88.  
  89.  
  90.