This program 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.
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
*/
+#ifndef MODEL_SPRITE_H
+#define MODEL_SPRITE_H
+
/*
==============================================================================
// FIXME: shorten these?
typedef struct mspriteframe_s
{
- int width;
- int height;
float up, down, left, right;
- int gl_texturenum, gl_fogtexturenum;
} mspriteframe_t;
-typedef struct
-{
- int numframes;
- float *intervals;
- mspriteframe_t *frames[1];
-} mspritegroup_t;
+#endif
-typedef struct
-{
- spriteframetype_t type;
- mspriteframe_t *frameptr;
-} mspriteframedesc_t;
-
-typedef struct
-{
- int type;
- int maxwidth;
- int maxheight;
- int numframes;
- float beamlength; // remove?
- void *cachespot; // remove?
- mspriteframedesc_t frames[1];
-} msprite_t;