;
; draw.sh
;
; Renders DrawFiles
;
;  1994-1998 Straylight
;

;----- Licensing note -------------------------------------------------------
;
; This file is part of Straylight's Sapphire library.
;
; Sapphire is free software; you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation; either version 2, or (at your option)
; any later version.
;
; Sapphire is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
; GNU General Public License for more details.
;
; You should have received a copy of the GNU General Public License
; along with Sapphire.  If not, write to the Free Software Foundation,
; 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

;----- Overview -------------------------------------------------------------
;
; Functions provided:
;
;  draw_render
;  draw_checkValid

		[	:LNOT::DEF:draw__dfn
		GBLL	draw__dfn

; --- draw_render ---
;
; On entry:	R0 == scale to plot drawfile (16.16 form)
;		R1 == pointer to a redraw block
;		R2 == pointer to drawfile in memory
;		R3 == size of drawfile block
;
; On exit:	--
;
; Use:		Renders a DrawFile in a window.  Objects which aren't
;		recognised are not rendered.  The objects which are handled
;		are as follows:
;
;		* Font table objects
;		* Text objects (in fonts, or in system font)
;		* Draw path objects, filled and unfilled, including
;		  dotted outlines
;		* Group objects
;		* Tagged objects
;		* Sprite objects, rendered as well as we can make it
;		* Transformed text, only on RISC OS 3
;		* Transformed sprite, only on RISC OS 3

		IMPORT	draw_render

; --- draw_checkValid ---
;
; On entry:	R0 == pointer to start of drawfile
;
; On exit:	May return an error
;
; Use:		Checks whether a drawfile is basically sound.  This checking
;		isn't compulsory, and just checks the initial word and the
;		format version number -- nothing very exciting.

		IMPORT	draw_checkValid

		]

;----- That's all, folks ----------------------------------------------------

		END
