move the definition of skin_t from client.h to skin.h

This commit is contained in:
Bill Currie 2001-01-20 04:10:12 +00:00
parent 5931dd6d80
commit 90f206ba5d
2 changed files with 11 additions and 10 deletions

View file

@ -37,13 +37,6 @@
#include "vid.h" #include "vid.h"
#include "zone.h" #include "zone.h"
typedef struct
{
char name[16];
qboolean failedload; // the name isn't a valid skin
cache_user_t cache;
} skin_t;
// player_state_t is the information needed by a player entity // player_state_t is the information needed by a player entity
// to do move prediction and to generate a drawable entity // to do move prediction and to generate a drawable entity
typedef struct player_state_s { typedef struct player_state_s {
@ -94,7 +87,7 @@ typedef struct player_info_s
int spectator; int spectator;
byte translations[VID_GRADES*256]; byte translations[VID_GRADES*256];
skin_t *skin; struct skin_s *skin;
} player_info_t; } player_info_t;

View file

@ -31,10 +31,18 @@
#include "client.h" #include "client.h"
typedef struct skin_s
{
char name[16];
qboolean failedload; // the name isn't a valid skin
cache_user_t cache;
} skin_t;
extern byte player_8bit_texels[320 * 200]; extern byte player_8bit_texels[320 * 200];
struct tex_s; struct tex_s;
struct player_info_s;
void Skin_Find (player_info_t *sc); void Skin_Find (struct player_info_s *sc);
byte *Skin_Cache (skin_t *skin); byte *Skin_Cache (skin_t *skin);
void Skin_Skins_f (void); void Skin_Skins_f (void);
void Skin_AllSkins_f (void); void Skin_AllSkins_f (void);
@ -42,7 +50,7 @@ void Skin_NextDownload (void);
void Skin_Init (void); void Skin_Init (void);
void Skin_Init_Cvars (void); void Skin_Init_Cvars (void);
void Skin_Init_Translation (void); void Skin_Init_Translation (void);
void Skin_Set_Translate (player_info_t *player); void Skin_Set_Translate (struct player_info_s *player);
void Skin_Do_Translation (player_info_t *player); void Skin_Do_Translation (player_info_t *player);
void Skin_Process (skin_t *skin, struct tex_s *); void Skin_Process (skin_t *skin, struct tex_s *);