chiark / gitweb /
Initial revision
[ssr] / StraySrc / Libraries / Sapphire / csapph / h / draw
1 /*
2  * draw.h
3  *
4  * [Generated from draw, 25 September 1996]
5  */
6
7 #if !defined(__CC_NORCROFT) || !defined(__arm)
8   #error You must use the Norcroft ARM Compiler for Sapphire programs
9 #endif
10
11 #pragma include_only_once
12 #pragma force_top_level
13
14 #ifndef __draw_h
15 #define __draw_h
16
17 #ifndef __sapphire_h
18   #include "sapphire.h"
19 #endif
20
21 /*----- Overview ----------------------------------------------------------*
22  *
23  * Functions provided:
24  *
25  *  draw_render
26  *  draw_checkValid
27  */
28
29 /* --- draw_render --- *
30  *
31  * On entry:    R0 == scale to plot drawfile (16.16 form)
32  *              R1 == pointer to a redraw block
33  *              R2 == pointer to drawfile in memory
34  *              R3 == size of drawfile block
35  *
36  * On exit:     --
37  *
38  * Use:         Renders a DrawFile in a window.  Objects which aren't
39  *              recognised are not rendered.  The objects which are handled
40  *              are as follows:
41  *
42  *              * Font table objects
43  *              * Text objects (in fonts, or in system font)
44  *              * Draw path objects, filled and unfilled, including
45  *                dotted outlines
46  *              * Group objects
47  *              * Tagged objects
48  *              * Sprite objects, rendered as well as we can make it
49  *              * Transformed text, only on RISC OS 3
50  *              * Transformed sprite, only on RISC OS 3
51  */
52
53 extern routine draw_render;
54
55 /* --- draw_checkValid --- *
56  *
57  * On entry:    R0 == pointer to start of drawfile
58  *
59  * On exit:     May return an error
60  *
61  * Use:         Checks whether a drawfile is basically sound.  This checking
62  *              isn't compulsory, and just checks the initial word and the
63  *              format version number -- nothing very exciting.
64  */
65
66 extern routine draw_checkValid;
67
68 /*----- That's all, folks -------------------------------------------------*/
69
70 #endif