home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR3 / MOUSE256.ZIP / READ.ME < prev    next >
Text File  |  1993-11-21  |  2KB  |  26 lines

  1. In Fastgraph's XVGA and SVGA 256-color graphics modes (modes 20 to 27), it's
  2. possible to create multicolored mouse cursors.  Before doing this, though,
  3. it's important to understand how two mouse data structures -- the SCREEN MASK
  4. and the CURSOR MASK -- behave.  Information on these two data structures may
  5. be found on pages 339 to 343 of the Fastgraph User's Guide.
  6.  
  7. Normally the screen and cursor masks are expressed as 16-element word arrays,
  8. with each bit corresponding to one pixel.  Each mask thus represents a 16x16
  9. grid of pixels, which of course is the size of the mouse cursor in graphics
  10. modes.  In modes 20 to 27, Fastgraph expands these masks into a more
  11. efficient internal format so the mouse cursor can be displayed as quickly as
  12. possible.  The expanded masks are stored in a 512-byte array referenced by
  13. the public symbol VGApairs, structured as 256 alternating screen and cursor
  14. mask bytes.  You can define a multicolored mouse cursor by storing
  15. appropriate values in the VGApairs array.
  16.  
  17. This distribution includes an assembly language function named SETMOUSE that
  18. stores a properly formatted screen and cursor mask array directly into the
  19. VGApairs array.  An example C program that calls SETMOUSE is also presented.
  20. The files in this distribution are:
  21.  
  22.         READ.ME         This file
  23.         SETMOUSE.ASM    Assembly function to access VGApairs array
  24.         MOUSE256.C      Example source code that calls SETMOUSE
  25.         MOUSE256.EXE    Compiled example of MOUSE256.C
  26.