fix merged build (d3d color references, renderinfo fixes)
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2993 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
519983dee2
commit
5c65851fb7
4 changed files with 1416 additions and 1417 deletions
|
@ -153,10 +153,8 @@ static galiastexnum_t *D3D_ChooseSkin(galiasinfo_t *inf, char *modelname, int su
|
||||||
int tinwidth, tinheight;
|
int tinwidth, tinheight;
|
||||||
char *skinname;
|
char *skinname;
|
||||||
qbyte *original;
|
qbyte *original;
|
||||||
int cc;
|
|
||||||
galiascolourmapped_t *cm;
|
galiascolourmapped_t *cm;
|
||||||
char hashname[512];
|
char hashname[512];
|
||||||
cc = (tc<<4)|bc;
|
|
||||||
|
|
||||||
if (e->scoreboard && e->scoreboard->skin && !gl_nocolors.value)
|
if (e->scoreboard && e->scoreboard->skin && !gl_nocolors.value)
|
||||||
{
|
{
|
||||||
|
@ -180,7 +178,7 @@ static galiastexnum_t *D3D_ChooseSkin(galiasinfo_t *inf, char *modelname, int su
|
||||||
|
|
||||||
for (cm = Hash_Get(&skincolourmapped, skinname); cm; cm = Hash_GetNext(&skincolourmapped, skinname, cm))
|
for (cm = Hash_Get(&skincolourmapped, skinname); cm; cm = Hash_GetNext(&skincolourmapped, skinname, cm))
|
||||||
{
|
{
|
||||||
if (cm->colour == cc && cm->skinnum == e->skinnum)
|
if (cm->tcolour == tc && cm->bcolour == bc && cm->skinnum == e->skinnum)
|
||||||
{
|
{
|
||||||
return &cm->texnum;
|
return &cm->texnum;
|
||||||
}
|
}
|
||||||
|
@ -211,7 +209,8 @@ static galiastexnum_t *D3D_ChooseSkin(galiasinfo_t *inf, char *modelname, int su
|
||||||
cm = BZ_Malloc(sizeof(*cm));
|
cm = BZ_Malloc(sizeof(*cm));
|
||||||
Q_strncpyz(cm->name, skinname, sizeof(cm->name));
|
Q_strncpyz(cm->name, skinname, sizeof(cm->name));
|
||||||
Hash_Add(&skincolourmapped, cm->name, cm, &cm->bucket);
|
Hash_Add(&skincolourmapped, cm->name, cm, &cm->bucket);
|
||||||
cm->colour = cc;
|
cm->tcolour = tc;
|
||||||
|
cm->bcolour = bc;
|
||||||
cm->skinnum = e->skinnum;
|
cm->skinnum = e->skinnum;
|
||||||
cm->texnum.fullbright = 0;
|
cm->texnum.fullbright = 0;
|
||||||
cm->texnum.base = 0;
|
cm->texnum.base = 0;
|
||||||
|
|
|
@ -153,10 +153,8 @@ static galiastexnum_t *D3D9_ChooseSkin(galiasinfo_t *inf, char *modelname, int s
|
||||||
int tinwidth, tinheight;
|
int tinwidth, tinheight;
|
||||||
char *skinname;
|
char *skinname;
|
||||||
qbyte *original;
|
qbyte *original;
|
||||||
int cc;
|
|
||||||
galiascolourmapped_t *cm;
|
galiascolourmapped_t *cm;
|
||||||
char hashname[512];
|
char hashname[512];
|
||||||
cc = (tc<<4)|bc;
|
|
||||||
|
|
||||||
if (e->scoreboard && e->scoreboard->skin && !gl_nocolors.value)
|
if (e->scoreboard && e->scoreboard->skin && !gl_nocolors.value)
|
||||||
{
|
{
|
||||||
|
@ -180,7 +178,7 @@ static galiastexnum_t *D3D9_ChooseSkin(galiasinfo_t *inf, char *modelname, int s
|
||||||
|
|
||||||
for (cm = Hash_Get(&skincolourmapped, skinname); cm; cm = Hash_GetNext(&skincolourmapped, skinname, cm))
|
for (cm = Hash_Get(&skincolourmapped, skinname); cm; cm = Hash_GetNext(&skincolourmapped, skinname, cm))
|
||||||
{
|
{
|
||||||
if (cm->colour == cc && cm->skinnum == e->skinnum)
|
if (cm->tcolour == tc && cm->bcolour == bc && cm->skinnum == e->skinnum)
|
||||||
{
|
{
|
||||||
return &cm->texnum;
|
return &cm->texnum;
|
||||||
}
|
}
|
||||||
|
@ -211,7 +209,8 @@ static galiastexnum_t *D3D9_ChooseSkin(galiasinfo_t *inf, char *modelname, int s
|
||||||
cm = BZ_Malloc(sizeof(*cm));
|
cm = BZ_Malloc(sizeof(*cm));
|
||||||
Q_strncpyz(cm->name, skinname, sizeof(cm->name));
|
Q_strncpyz(cm->name, skinname, sizeof(cm->name));
|
||||||
Hash_Add(&skincolourmapped, cm->name, cm, &cm->bucket);
|
Hash_Add(&skincolourmapped, cm->name, cm, &cm->bucket);
|
||||||
cm->colour = cc;
|
cm->tcolour = tc;
|
||||||
|
cm->bcolour = bc;
|
||||||
cm->skinnum = e->skinnum;
|
cm->skinnum = e->skinnum;
|
||||||
cm->texnum.fullbright = 0;
|
cm->texnum.fullbright = 0;
|
||||||
cm->texnum.base = 0;
|
cm->texnum.base = 0;
|
||||||
|
|
|
@ -40,7 +40,7 @@ void GLDraw_BeginDisc (void);
|
||||||
void GLDraw_EndDisc (void);
|
void GLDraw_EndDisc (void);
|
||||||
void GLDraw_TileClear (int x, int y, int w, int h);
|
void GLDraw_TileClear (int x, int y, int w, int h);
|
||||||
void GLDraw_FillRGB (int x, int y, int w, int h, float r, float g, float b);
|
void GLDraw_FillRGB (int x, int y, int w, int h, float r, float g, float b);
|
||||||
void GLDraw_Fill (int x, int y, int w, int h, int c);
|
void GLDraw_Fill (int x, int y, int w, int h, unsigned int c);
|
||||||
void GLDraw_FadeScreen (void);
|
void GLDraw_FadeScreen (void);
|
||||||
void GLDraw_String (int x, int y, const qbyte *str);
|
void GLDraw_String (int x, int y, const qbyte *str);
|
||||||
void GLDraw_Alt_String (int x, int y, const qbyte *str);
|
void GLDraw_Alt_String (int x, int y, const qbyte *str);
|
||||||
|
|
|
@ -4086,6 +4086,7 @@ rendererinfo_t d3drendererinfo = {
|
||||||
GLDraw_ReInit,
|
GLDraw_ReInit,
|
||||||
GLDraw_Character,
|
GLDraw_Character,
|
||||||
GLDraw_ColouredCharacter,
|
GLDraw_ColouredCharacter,
|
||||||
|
GLDraw_TinyCharacter,
|
||||||
GLDraw_String,
|
GLDraw_String,
|
||||||
GLDraw_Alt_String,
|
GLDraw_Alt_String,
|
||||||
GLDraw_Crosshair,
|
GLDraw_Crosshair,
|
||||||
|
|
Loading…
Reference in a new issue