; ; resspr.sh ; ; Handling of the application's private sprite area ; ; © 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: ; ; resspr_load ; resspr_area ; resspr_init [ :LNOT::DEF:resspr__dfn GBLL resspr__dfn ; --- resspr_load --- ; ; On entry: R0 == pointer to filename ; ; On exit: May return an error ; ; Use: Loads a sprite file into memory and allows it to be ; referenced through resspr_area. Note that Straylight's ; Sprinkle module must be loaded if more than one sprite file ; is to be used for resources. IMPORT resspr_load ; --- resspr_area --- ; ; On entry: -- ; ; On exit: R0 == pointer to application's sprite area ; ; Use: Locates the application's `Sprites' resource in memory and ; returns a pointer to it. If the resource has not been ; loaded, 1 is returned, to indicate to use the WIMP area. ; If multiple sprite files have been loaded, this call returns ; the address of the first: they will have been linked together ; so that Sprinkle will treat them as one big area. IMPORT resspr_area ; --- resspr_init --- ; ; On entry: R0 == pointer to application name ; ; On exit: -- ; ; Use: Initalises resspr, loading the Sprites resource. IMPORT resspr_init ] ;----- That's all, folks ---------------------------------------------------- END