X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=model_sprite.h;h=d28174dfd957e2a672ba02bec638ec23ad8f9ac4;hb=32c804dfbca9495b8d4bd40d07f289f8c890d813;hp=394fb830c3c52c48d83542cfb488cc6a208f6776;hpb=d57be67cb00229acb8564b92c8b7c58eeed8a0cb;p=xonotic%2Fdarkplaces.git diff --git a/model_sprite.h b/model_sprite.h index 394fb830..d28174df 100644 --- a/model_sprite.h +++ b/model_sprite.h @@ -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 +