home *** CD-ROM | disk | FTP | other *** search
- /* Title: resspr+.c
- * Purpose: Replacement for resspr routines in RISCOSLib.
- * These routines use internal an internal sprite
- * file stored in the !RunImage file using
- * DataToAOF.
- * Author: (c) Paul Fidler 1992
- * Version: 1.00 (12-Oct-92)
- *
- * This file is included as part of the DataToAOF distribution
- * to demonstrate how the resspr functions can be made to
- * work for internally stored sprites. The length of the sprite
- * file is placed in the blank word (see Technical Details
- * section in 'Guide') in order to make a sprite area. Note that
- * exactly the same piece of code could be used to set up an
- * internally stored relocatable module (which also requires
- * it's length stored immedietely in front of it in memory
- * if it is to be run/uploaded from application workspace).
- */
-
-
-
- static int *area = 1;
-
- void resspr_init(int *data, int length)
- {
- int *ptr = data;
- ptr--;
- ptr[0] = length;
- area = ptr;
- }
-
- int *resspr_area(void)
- {
- return( area );
- }
-
-