Remove red/blue 3d mode from Polymost. This hadn't been enabled in a long time and I'm not sure if it even worked anymore. DONT_BUILD.

git-svn-id: https://svn.eduke32.com/eduke32@6014 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2017-01-18 22:21:51 +00:00
parent 28d6086bb0
commit 652b467389
2 changed files with 0 additions and 49 deletions

View file

@ -1244,7 +1244,6 @@ enum {
TEXFILTER_ON = 5, // GL_LINEAR_MIPMAP_LINEAR TEXFILTER_ON = 5, // GL_LINEAR_MIPMAP_LINEAR
}; };
extern int32_t glredbluemode;
extern int32_t glusetexcache, glusememcache; extern int32_t glusetexcache, glusememcache;
extern int32_t glmultisample, glnvmultisamplehint; extern int32_t glmultisample, glnvmultisamplehint;
extern int32_t glprojectionhacks; extern int32_t glprojectionhacks;

View file

@ -68,11 +68,6 @@ static int32_t preview_mouseaim=1; // when 1, displays a CROSSHAIR tsprite at t
static int32_t drawpoly_srepeat = 0, drawpoly_trepeat = 0; static int32_t drawpoly_srepeat = 0, drawpoly_trepeat = 0;
#ifdef REDBLUEMODE
int32_t glredbluemode = 0;
static int32_t lastglredbluemode = 0, redblueclearcnt = 0;
#endif
struct glfiltermodes glfiltermodes[NUMGLFILTERMODES] = struct glfiltermodes glfiltermodes[NUMGLFILTERMODES] =
{ {
{"GL_NEAREST",GL_NEAREST,GL_NEAREST}, {"GL_NEAREST",GL_NEAREST,GL_NEAREST},
@ -540,19 +535,6 @@ static float get_projhack_ratio(void)
static void resizeglcheck(void) static void resizeglcheck(void)
{ {
#ifdef REDBLUEMODE
if (glredbluemode < lastglredbluemode)
{
glox1 = -1;
bglColorMask(1,1,1,1);
}
else if (glredbluemode != lastglredbluemode)
{
redblueclearcnt = 0;
}
lastglredbluemode = glredbluemode;
#endif
#ifndef EDUKE32_GLES #ifndef EDUKE32_GLES
//FUK //FUK
if (lastglpolygonmode != r_polygonmode) if (lastglpolygonmode != r_polygonmode)
@ -3893,33 +3875,6 @@ void polymost_drawrooms()
bglDepthFunc(GL_LEQUAL); //NEVER,LESS,(,L)EQUAL,GREATER,(NOT,G)EQUAL,ALWAYS bglDepthFunc(GL_LEQUAL); //NEVER,LESS,(,L)EQUAL,GREATER,(NOT,G)EQUAL,ALWAYS
// bglDepthRange(0.0, 1.0); //<- this is more widely supported than glPolygonOffset // bglDepthRange(0.0, 1.0); //<- this is more widely supported than glPolygonOffset
//Enable this for OpenGL red-blue glasses mode :)
#ifdef REDBLUEMODE
if (glredbluemode)
{
static int32_t grbfcnt = 0; grbfcnt++;
if (redblueclearcnt < numpages) { redblueclearcnt++; bglColorMask(1,1,1,1); bglClear(GL_COLOR_BUFFER_BIT); }
if (grbfcnt&1)
{
bglViewport(windowxy1.x-16,yres-(windowxy2.y+1),windowxy2.x-(windowxy1.x-16)+1,windowxy2.y-windowxy1.y+1);
bglColorMask(1,0,0,1);
globalposx += singlobalang>>10;
globalposy -= cosglobalang>>10;
fglobalposx = (float) globalposx;
fglobalposy = (float) globalposy;
}
else
{
bglViewport(windowxy1.x,yres-(windowxy2.y+1),windowxy2.x+16-windowxy1.x+1,windowxy2.y-windowxy1.y+1);
bglColorMask(0,1,1,1);
globalposx -= singlobalang>>10;
globalposy += cosglobalang>>10;
fglobalposx = (float) globalposx;
fglobalposy = (float) globalposy;
}
}
#endif
//Polymost supports true look up/down :) Here, we convert horizon to angle. //Polymost supports true look up/down :) Here, we convert horizon to angle.
//gchang&gshang are cos&sin of this angle (respectively) //gchang&gshang are cos&sin of this angle (respectively)
gyxscale = ((float)xdimenscale)*(1.0f/131072.f); gyxscale = ((float)xdimenscale)*(1.0f/131072.f);
@ -6014,9 +5969,6 @@ void polymost_initosdfuncs(void)
#endif #endif
{ "r_texcompr","enable/disable OpenGL texture compression: 0: off 1: hightile only 2: ART and hightile",(void *) &glusetexcompr, CVAR_INT, 0, 2 }, { "r_texcompr","enable/disable OpenGL texture compression: 0: off 1: hightile only 2: ART and hightile",(void *) &glusetexcompr, CVAR_INT, 0, 2 },
#ifdef REDBLUEMODE
{ "r_redbluemode","enable/disable experimental OpenGL red-blue glasses mode",(void *) &glredbluemode, CVAR_BOOL, 0, 1 },
#endif
{ "r_shadescale","multiplier for shading",(void *) &shadescale, CVAR_FLOAT, 0, 10 }, { "r_shadescale","multiplier for shading",(void *) &shadescale, CVAR_FLOAT, 0, 10 },
{ "r_shadescale_unbounded","enable/disable allowance of complete blackness",(void *) &shadescale_unbounded, CVAR_BOOL, 0, 1 }, { "r_shadescale_unbounded","enable/disable allowance of complete blackness",(void *) &shadescale_unbounded, CVAR_BOOL, 0, 1 },
{ "r_swapinterval","sets the GL swap interval (VSync)",(void *) &vsync, CVAR_INT|CVAR_FUNCPTR, -1, 1 }, { "r_swapinterval","sets the GL swap interval (VSync)",(void *) &vsync, CVAR_INT|CVAR_FUNCPTR, -1, 1 },