fullbrights on player skins now work properly instead of using the fb skin

of the player model.
This commit is contained in:
Bill Currie 2001-01-20 06:47:01 +00:00
parent 92f357a2ad
commit 1444bac78d
7 changed files with 111 additions and 75 deletions

View file

@ -458,5 +458,6 @@ byte *Mod_LeafPVS (mleaf_t *leaf, model_t *model);
model_t *Mod_FindName (char *name);
void Mod_ProcessTexture(miptex_t *mt, texture_t *tx);
void Mod_LoadLighting (lump_t *l);
int Mod_CalcFullbright (byte *in, byte *out, int pixels);
#endif // _MODEL_H

View file

@ -1,7 +1,7 @@
/*
client.h
skin.h
Client definitions
Client skin definitions
Copyright (C) 1996-1997 Id Software, Inc.
@ -29,21 +29,26 @@
#ifndef _SKIN_H
#define _SKIN_H
#include "client.h"
#define MAX_CACHED_SKINS 128
#define RSSHOT_WIDTH 320
#define RSSHOT_HEIGHT 200
typedef struct skin_s
{
char name[16];
qboolean failedload; // the name isn't a valid skin
cache_user_t cache;
int fb_texture;
} skin_t;
extern byte player_8bit_texels[320 * 200];
extern skin_t skin_cache[MAX_CACHED_SKINS];
struct tex_s;
struct player_info_s;
void Skin_Find (struct player_info_s *sc);
byte *Skin_Cache (skin_t *skin);
struct tex_s *Skin_Cache (skin_t *skin);
void Skin_Skins_f (void);
void Skin_AllSkins_f (void);
void Skin_NextDownload (void);
@ -54,9 +59,4 @@ void Skin_Set_Translate (struct player_info_s *player);
void Skin_Do_Translation (player_info_t *player);
void Skin_Process (skin_t *skin, struct tex_s *);
#define MAX_CACHED_SKINS 128
#define RSSHOT_WIDTH 320
#define RSSHOT_HEIGHT 200
#endif