RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Downloads | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

OS_SpriteOp 15

OS SWI Calls
» OS_SpriteOp
» OS_SpriteOp 15 – Create sprite

OS_SpriteOp 15 – Create sprite

(SWI &2E)
Entry
R0 15 (Reason code) + Area value
R1 Unused/Sprite area (as defined by area value in R0)
R2 Sprite name
R3 1 to create palette, 0 to exclude palette
R4 Width in pixels
R5 Height in pixels
R6 Mode Specifier
Exit
All registers preserved

Use

This call creates a new sprite with the given name.

Notes

If a sprite with the given name already exists, it will first be deleted before the new sprite is created.

All of the sprite pixels will be initialised to zero.

If R6 is a valid Sprite Mode Word (i.e. a mode number, or a RISC OS 3.5 or RISC OS 5 style sprite mode word) then it will be used as-is to initialise the mode word of the new sprite. Otherwise it must be a pointer to a Mode Selector Block. The block will be converted to a RISC OS 3.5 or RISC OS 5 sprite mode word, favouring the most backwards compatible format.

See also

  • Format Of Sprite
  • Format Of Sprite Area
  • OS_SpriteOp
  • Sprite Mode Word
Revised on December 31, 2018 08:16:52 by Jon Abbott (1421)? (86.131.129.58)
Edit | Back in time (2 revisions) | See changes | History | Views: Print | Source | Linked from: OS_SpriteOp

Search the Wiki

Social

Follow us on and

ROOL Store

Buy RISC OS Open merchandise here, including SD cards for Raspberry Pi and more.

Donate! Why?

Help ROOL make things happen – please consider donating!

RISC OS IPR

RISC OS is an Open Source operating system owned by RISC OS Developments Ltd and licensed primarily under the Apache 2.0 license.

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2018 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys