home *** CD-ROM | disk | FTP | other *** search
- From: llfs7@fel.tno.nl (L.L.Frederiks)
- Subject: New 16/32 bit sprite format
- Date: Mon, 1 Nov 1993 12:26:34 GMT
-
- Last friday (at the Acorn World Show), someone from CC was willing to explain
- the new 16/32 bit sprite format. I got also a 24 bit sprite, which I will
- post tomorrow. Note: you will 'special' programs to display the new
- sprites (such as Impression Style/Publisher and ....). !Paint will
- complain about a 'bad sprite mode'.
-
- Loek.
-
- New RISC OS sprite format
- -------------------------
-
- The Sprite Control Block contains the following:
-
- Bytes Content
-
- 0 - 3 Offset to next sprite
- 4 - 15 Sprite name, up to 12 characters
- 16 - 19 Width in words-1
- 20 - 23 Height in scan lines-1
- 24 - 27 First bit used (left end of row)
- 32 - 35 Offset to sprite image
- 36 - 39 Offset to transparency mask or offset to sprite image
- if no mask
- 40 - 43 Mode sprite was defined in
-
- Bit Content
-
- 0 Should be one
- 1 - 13 x-resolution in dpi (dots per inch), which
- can only be equal to 45 or 90
- 14 - 26 y-resolution in dpi
- 27 - 31 Type of image: 0 = old format
- 1 = 1 bpp
- 2 = 2 bpp
- 3 = 4 bpp
- 4 = 8 bpp
- 5 = 16 bpp
- 6 = 32 bpp
- 7 = 32 bpp CMYK
-
- For 16 bpp sprites, the format of each pixel of the sprite image is as
- follows:
-
- Bits Content
-
- 4 - 0 R
- 9 - 5 G
- 14 - 10 B
- 15 Not used
-
- --
- ---------------------------//|-----------------------------------------
- Loek Frederiks //|| TNO Physics and Electronics Laboratory
- L.Frederiks@fel.tno.nl // || Oude Waalsdorperweg 63, 2597 AK Den Haag
- loek@nt.el.utwente.nl ///||| The Netherlands +31-(0)70-3264221
-
-
-