4 * Handling of template file sprite windows and areas
6 * © 1994-1998 Straylight
9 /*----- Licensing note ----------------------------------------------------*
11 * This file is part of Straylight's Glass.
13 * Glass is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2, or (at your option)
18 * Glass is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
23 * You should have received a copy of the GNU General Public License
24 * along with Glass. If not, write to the Free Software Foundation,
25 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
31 /*----- Required header files ---------------------------------------------*/
37 /*----- External routines -------------------------------------------------*/
40 * void gSprite_kill(glass_tfile *t)
43 * Closes the sprite viewer and frees the sprite area
46 * glass_tfile *t == the template file that's closing
49 void gSprite_kill(glass_tfile *t);
52 * void gSprite_display(glass_tfile *t)
55 * Displays the sprite viewer for the specified template file.
57 * glass_tfile *t == the template file whose sprites we want to see
60 void gSprite_display(glass_tfile *t);
63 * void gSprite_mergeFromMemory(glass_tfile *t,void **p)
66 * Merges a sprite file which is stored in memory. This is so I can do
67 * in-memory transfer of sprites.
70 * glass_tfile *t == the template file owner of the sprite area
71 * void **p == the flex block stroing the sprite file
74 void gSprite_mergeFromMemory(glass_tfile *t,void **p);
77 * void gSprite_mergeFromFile(glass_tfile *t,char *name)
80 * Merges the given file into the sprite area specified.
83 * glass_tfile *t == the template file that we're going to load for
84 * char *name == the name of the file to load
87 void gSprite_mergeFromFile(glass_tfile *t,char *name);
90 * void gSprite_new(glass_tfile *t)
93 * Creates a sprite file for the given template file. Initially, the file
94 * is blank. On failure, an error is generated and sprite area 1 (WIMP
95 * pool) is used instead. Note that at present, this section uses indir
96 * for allocation of sprite areas.
99 * glass_tfile *t == the file to use
102 void gSprite_new(glass_tfile *t);
105 * sprite_area *gSprite_area(void)
108 * Returns the address of the Glass default sprite file, or 1 for the
109 * WIMP sprite area if no default sprites are loaded
112 sprite_area *gSprite_area(void);
115 * void gSprite_init(void)
118 * Loads the Glass default sprite area into memory.
121 void gSprite_init(void);