have gltexcompr option in mapster32; fix prhighpal.py script

git-svn-id: https://svn.eduke32.com/eduke32@1755 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2011-01-09 22:49:50 +00:00
parent e66bec5e31
commit 4bc5ed0e83
2 changed files with 7 additions and 2 deletions

View file

@ -178,6 +178,10 @@ int32_t loadsetup(const char *fn)
r_downsize = clamp(r_downsize, 0, 5); r_downsize = clamp(r_downsize, 0, 5);
r_downsizevar = r_downsize; r_downsizevar = r_downsize;
} }
if (readconfig(fp, "r_texcompr", val, VL) > 0)
{
glusetexcompr = !!Batoi(val);
}
#endif #endif
if (readconfig(fp, "gameexecutable", val, VL) > 0) if (readconfig(fp, "gameexecutable", val, VL) > 0)
@ -350,6 +354,7 @@ int32_t writesetup(const char *fn)
"gltexfiltermode = %d\n" "gltexfiltermode = %d\n"
"glanisotropy = %d\n" "glanisotropy = %d\n"
"r_downsize = %d\n" "r_downsize = %d\n"
"r_texcompr = %d\n"
"\n" "\n"
#endif #endif
@ -508,7 +513,7 @@ int32_t writesetup(const char *fn)
editorgridextent, min(max(0, default_grid), 9), editorgridextent, min(max(0, default_grid), 9),
#if defined(POLYMOST) && defined(USE_OPENGL) #if defined(POLYMOST) && defined(USE_OPENGL)
usemodels, usehightile, usemodels, usehightile,
glusetexcache, gltexfiltermode, glanisotropy,r_downsize, glusetexcache, gltexfiltermode, glanisotropy,r_downsize,glusetexcompr,
#endif #endif
#ifdef RENDERTYPEWIN #ifdef RENDERTYPEWIN
maxrefreshfreq, windowpos, windowx, windowy, maxrefreshfreq, windowpos, windowx, windowy,

View file

@ -207,7 +207,7 @@ BASEPALHSV should the precomputed HSV representation of BASEPAL."
mask = m1 | m2 | m3 | m4; mask = m1 | m2 | m3 | m4;
# blue to gray by removing all saturation # blue to gray by removing all saturation
h[m1] = 0.0; s[m1] = 0.0;
# orange and brown to blue # orange and brown to blue
h[m2] = 0.66; h[m2] = 0.66;
# purple and reddish to blue # purple and reddish to blue