home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 2 / RISC_DISC_2.iso / pd_share / program / sprtools / riscos / newsprit < prev    next >
Encoding:
Text File  |  1994-07-18  |  1.9 KB  |  64 lines

  1. New sprite format
  2. =================
  3.  
  4. Version 0.90 (10-Jan-1993)
  5. SPRtools block 1 release.
  6. (C) 1993 DEEJ Technology PLC
  7.  
  8.  
  9. 15/16 and 24/32 bit sprite format
  10. ---------------------------------
  11.  
  12. The Sprite Control Block contains the following:
  13.  
  14.     Bytes            Content
  15.  
  16.      0 - 3           Offset to next sprite
  17.      4 - 15          Sprite name, up to 12 characters
  18.     16 - 19          Width in words-1
  19.     20 - 23          Height in scan lines-1
  20.     24 - 27          First bit used (left end of row) - should be 0
  21.     32 - 35          Offset to sprite image
  22.     36 - 39          Offset to transparency mask or offset to sprite image
  23.                      if no mask
  24.     40 - 43          Mode sprite was defined in
  25.  
  26.                      Bit        Content
  27.    
  28.                       0         Should be one
  29.                       1 - 13    x-resolution in dpi (dots per inch), which
  30.                                 can only be equal to 45 or 90
  31.                      14 - 26    y-resolution in dpi
  32.                      27 - 31    Type of image: 0 = old format
  33.                                                1 = 1 bpp
  34.                                                2 = 2 bpp
  35.                                                3 = 4 bpp
  36.                                                4 = 8 bpp
  37.                                                5 = 16 bpp
  38.                                                6 = 32 bpp
  39.                                                7 = 32 bpp CMYK
  40.  
  41. For 15/16 bpp sprites, the format of each pixel of the sprite image is as
  42. follows:
  43.  
  44.     Bits            Content
  45.  
  46.      4 - 0          R
  47.      9 - 5          G
  48.     14 - 10         B
  49.     15              Not used
  50.  
  51. For 24/32 bpp sprites, the format of each pixel of the sprite image is as
  52.  
  53.     Bytes           Content
  54.     0               R
  55.     1               G
  56.     2               B
  57.     3               Not Used (Alpha channel information)
  58.  
  59.  
  60. Disclaimer
  61. ----------
  62. All information is understood to be correct at time of writing.
  63.  
  64.