]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_sprite.h
reenabled loading plaques (and cleaned up that code a lot)
[xonotic/darkplaces.git] / model_sprite.h
index c07c8883601554cc9d9c8d26e0960af722d14f63..394fb830c3c52c48d83542cfb488cc6a208f6776 100644 (file)
@@ -31,32 +31,9 @@ SPRITE MODELS
 // FIXME: shorten these?
 typedef struct mspriteframe_s
 {
-       int             width;
-       int             height;
        float   up, down, left, right;
-       int             gl_texturenum, gl_fogtexturenum;
+       rtexture_t *texture, *fogtexture;
 } mspriteframe_t;
 
-typedef struct
-{
-       int                             numframes;
-       float                   *intervals;
-       mspriteframe_t  *frames[1];
-} mspritegroup_t;
-
-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;
+extern void Mod_LoadSpriteModel (struct model_s *mod, void *buffer);
+extern void Mod_SpriteInit(void);