]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_sprite.h
README: Add link to Matrix space
[xonotic/darkplaces.git] / model_sprite.h
index 394fb830c3c52c48d83542cfb488cc6a208f6776..d28174dfd957e2a672ba02bec638ec23ad8f9ac4 100644 (file)
@@ -8,7 +8,7 @@ of the License, or (at your option) any later version.
 
 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.
 
@@ -18,6 +18,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 */
 
+#ifndef MODEL_SPRITE_H
+#define MODEL_SPRITE_H
+
 /*
 ==============================================================================
 
@@ -32,8 +35,14 @@ SPRITE MODELS
 typedef struct mspriteframe_s
 {
        float   up, down, left, right;
-       rtexture_t *texture, *fogtexture;
 } mspriteframe_t;
 
-extern void Mod_LoadSpriteModel (struct model_s *mod, void *buffer);
-extern void Mod_SpriteInit(void);
+typedef struct model_sprite_s
+{
+       int                             sprnum_type;
+       mspriteframe_t  *sprdata_frames;
+}
+model_sprite_t;
+
+#endif
+