[Select]

Graphics


Index

 

ColourMapping in Drawfiles

This document is intentionally brief; refer to Sprites - ColourMap section for information pertaining to the changes in the sprite system for colour mapping.

DrawFile rendering flags :

bit 3 - If set, colour mapping function has been supplied, if clear, no colour mapping should be performed

DrawFile_Render
On entry
   R0 = flags
   R1 = pointer to draw file to render
   R2 = size of draw file
   R3 = pointer to transform, or 0 for identity
   R4  = pointer to clipping box, or 0 for none
   R5 = flatness
   R6 = pointer to colour mapping descriptor

i.e. flags updated and R6 used if ColourMapping set.

Service_DrawObjectRender
On entry
   R0 = type
   R1 = service number
   R2 = pointer torender state
         +12 = flags
         +32 = pointer to colour mapping descriptor

i.e. two added values to the state and the flags updated.


This documentation is copyright 3QD Developments Ltd 2013 and may not be reproduced or published in any form without the copyright holders permission. RISC OS is subject to continuous development and improvement as such all information is reproduced by 3QD Developments Ltd in good faith and is believed to be correct at the time of publication E&OE. 3QD Developments Ltd cannot accept any liability for any loss or damage arising from the use of any information provided as part of the RISC OS Documentation.

HTML document version 1.03 3rd November 2015