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

Draw Output To A Path Block

Programmer's Reference Manuals
» Part 8 - Non-kernel input/output
» Draw Module
» SWI Calls
» Draw_FlattenPath
» Draw Output To A Path Block

Draw Output To A Path Block

Notes

When writing to a path block the Draw module uses the word after the end of path marker to store the size of the buffer. As data is written and the end of path marker is moved this value is updated, and the SWI returns a pointer to the new position of the end of path marker. This allows a second SWI to be called to append to the path, with no need for the program to keep track of the free space in the buffer.

Hence before calling any SWIs that write a path to a buffer the first two words should be initialised, thus:

Offset Value
+0 0 (end o path marker)
+4 Size of buffer

See also

  • Draw_Fill Path Block
  • Draw_FlattenPath
  • Draw_StrokePath
Created on October 25, 2009 19:27:11 by Alan Robertson (52)? (127.0.0.1)
Edit | Views: Print | Source | Linked from: Draw_FlattenPath, Draw_ProcessPath Special Values, Draw_StrokePath, Draw_TransformPath

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