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

Page "Web site help/versions/1" does not exist. Please create it now, or hit the "back" button in your browser.

ColourTrans_GenerateTable

Programmer's Reference Manuals
» Part 8 - Non-kernel input/output
» ColourTrans
» SWI Calls
» ColourTrans_GenerateTable

ColourTrans_ GenerateTable

(SWI &40763)
Entry
R0 Source mode
R1 Source palette pointer
R2 Destination mode, or -1 for current mode
R3 Destination palette pointer, or
  -1 for current palette, or
  0 for default for the current mode
R4 Pointer to buffer, or 0 to return length
R5 Select Table Flags (only used if R0 >= 256)
R6 Pointer to transfer function (if R0 => 256 and bit 2 of R5 is set)
R7 Pointer to transfer workspace (R12) (if R0 => 256 and bit 2 of R5 is set)
Exit
R0 Preserved
R1 Preserved
R2 Preserved
R3 Preserved
R4 Required size of buffer (if R4=0 on entry), or preserved
R5 Preserved
R6 Preserved
R7 Preserved

Use

The purpose of this call is to set up a translation table in a buffer that is used by scaled sprite plotting.

Notes

The SWI call assumes that R5 contains valid flags.

Both R6 and R7 are only used, if both;

  1. R0 => 256
  2. bit 2 of R5 is set

See also

  • ColourTrans_SelectTable
  • Select Table Flags
Revised on September 27, 2009 16:55:04 by Alan Robertson (52)? (127.0.0.1)
Edit | Back in time (2 revisions) | See changes | History | Views: Print | Source | Linked from: ColourTrans SWI Calls, ColourTrans_SelectTable, Select Table Source Mode, Select Table Source Palette Pointer, Select Table Flags, ColourTrans Transfer Function, Colour Vector SWI Numbers

Search the Wiki

Commercial use

For commercial enquiries, please contact the owners of RISC OS, Castle Technology Ltd.

ROOL Store

The official C/C++ Development kit and more here.

Donate! Why?

Help ROOL make things happen – please consider donating!

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2011 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