Home
last modified time | relevance | path

Searched refs:pwr2mapy (Results 1 – 16 of 16) sorted by relevance

/dports/games/spring/spring_98.0/rts/Map/
H A DBaseGroundDrawer.cpp47 infoTexPBO.New(gs->pwr2mapx * gs->pwr2mapy * 4); in CBaseGroundDrawer()
106 SetTexGen(1.0f / (gs->pwr2mapx * SQUARE_SIZE), 1.0f / (gs->pwr2mapy * SQUARE_SIZE), 0, 0); in DrawTrees()
495 …glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, gs->pwr2mapx, gs->pwr2mapy, 0, GL_BGRA, GL_UNSIGNED_BYTE,… in UpdateExtraTexture()
497 …glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, gs->pwr2mapx>>1, gs->pwr2mapy>>1, 0, GL_BGRA, GL_UNSIGNED… in UpdateExtraTexture()
512 …glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, gs->pwr2mapx, gs->pwr2mapy, GL_BGRA, GL_UNSIGNED_BYTE, inf… in UpdateExtraTexture()
514 …glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, gs->pwr2mapx>>1, gs->pwr2mapy>>1, GL_BGRA, GL_UNSIGNED_BYT… in UpdateExtraTexture()
532 return (int2(gs->pwr2mapx, gs->pwr2mapy)); in GetInfoTexSize()
534 return (int2(gs->pwr2mapx >> 1, gs->pwr2mapy >> 1)); in GetInfoTexSize()
H A DReadMap.cpp159 gs->pwr2mapy = next_power_of_2(gs->mapy); in Initialize()
/dports/games/spring/spring_98.0/rts/Sim/Misc/
H A DGlobalSynced.cpp42 CR_MEMBER(pwr2mapy),
70 pwr2mapy = mapy; //next_power_of_2(mapy); in CGlobalSynced()
H A DGlobalSynced.h132 int pwr2mapy; variable
/dports/games/spring/spring_98.0/rts/Map/SMF/
H A DSMFRenderState.cpp153 …glslShaders[n]->SetUniform("mapSizePO2", float(gs->pwr2mapx * SQUARE_SIZE), float(gs->pwr2mapy * S… in Init()
171 …SetUniform("infoTexGen", 1.0f / (gs->pwr2mapx * SQUARE_SIZE), 1.0f / (gs->pwr2mapy * SQUARE_SIZE)); in Init()
220 SetTexGen(1.0f / (gs->pwr2mapx * SQUARE_SIZE), 1.0f / (gs->pwr2mapy * SQUARE_SIZE), 0, 0); in Enable()
234 SetTexGen(1.0f / (gs->pwr2mapx * SQUARE_SIZE), 1.0f / (gs->pwr2mapy * SQUARE_SIZE), 0, 0); in Enable()
281 … (gs->pwr2mapx * SQUARE_SIZE), 1.0f / (gs->pwr2mapy * SQUARE_SIZE), -0.5f / gs->pwr2mapx, -0.5f / … in Enable()
360 …ENT]->SetUniform4f(10, 1.0f / (gs->pwr2mapx * SQUARE_SIZE), 1.0f / (gs->pwr2mapy * SQUARE_SIZE), 0… in Enable()
H A DSMFReadMap.cpp283 …glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, gs->pwr2mapx, gs->pwr2mapy, 0, GL_RGBA, GL_UNSIGNED_BYTE,… in CreateShadingTex()
697 static float isy = gs->mapy / float(gs->pwr2mapy); in DrawMinimap()
/dports/games/spring/spring_98.0/rts/Rendering/Env/
H A DRefractWater.cpp96 float tplane[] = { 0.0f, 0.0f, 1.0f / (gs->pwr2mapy * SQUARE_SIZE), 0.0f}; in SetupWaterDepthTex()
H A DGrassDrawer.cpp203 …SetUniform("mapSizePO2", 1.0f / (gs->pwr2mapx * SQUARE_SIZE), 1.0f / (gs->pwr2mapy * SQUARE_SIZE)); in LoadGrassShaders()
658 SetTexGen(1.0f / (gs->pwr2mapx * SQUARE_SIZE), 1.0f / (gs->pwr2mapy * SQUARE_SIZE), 0.0f, 0.0f); in SetupGlStateNear()
668 SetTexGen(1.0f / (gs->pwr2mapx * SQUARE_SIZE), 1.0f / (gs->pwr2mapy * SQUARE_SIZE), 0.0f, 0.0f); in SetupGlStateNear()
H A DDynWater.cpp345 …GL_VERTEX_PROGRAM_ARB, 14, 1.0f/(gs->pwr2mapx * SQUARE_SIZE), 1.0f/(gs->pwr2mapy * SQUARE_SIZE), 0… in Draw()
611 …ARB, 12, float(WF_SIZE)/(gs->pwr2mapx*SQUARE_SIZE), float(WF_SIZE)/(gs->pwr2mapy*SQUARE_SIZE), 0, … in DrawWaves()
612 …osBig.x-WH_SIZE)/(gs->pwr2mapx*SQUARE_SIZE), (camPosBig.z-WH_SIZE)/(gs->pwr2mapy*SQUARE_SIZE), 0, … in DrawWaves()
H A DAdvTreeDrawer.cpp174 …ASIC]->SetUniform4f(6, 1.0f / (gs->pwr2mapx * SQUARE_SIZE), 1.0f / (gs->pwr2mapy * SQUARE_SIZE), 1… in LoadTreeShaders()
524 const int my = gs->pwr2mapy * SQUARE_SIZE; in Draw()
H A DBumpWater.cpp469 const float shadingZ = (float)gs->mapy / gs->pwr2mapy; in CBumpWater()
/dports/games/spring/spring_98.0/rts/Rendering/Env/Decals/
H A DGroundDecalHandler.cpp179 …R_GLSL]->SetUniform2f(3, 1.0f / (gs->pwr2mapx * SQUARE_SIZE), 1.0f / (gs->pwr2mapy * SQUARE_SIZE)); in LoadDecalShaders()
723 SetTexGen(1.0f / (gs->pwr2mapx * SQUARE_SIZE), 1.0f / (gs->pwr2mapy * SQUARE_SIZE), 0, 0); in Draw()
735 SetTexGen(1.0f / (gs->pwr2mapx * SQUARE_SIZE), 1.0f / (gs->pwr2mapy * SQUARE_SIZE), 0, 0); in Draw()
753 …URR]->SetUniform4f(10, 1.0f / (gs->pwr2mapx * SQUARE_SIZE), 1.0f / (gs->pwr2mapy * SQUARE_SIZE), 0… in Draw()
H A DDecalsDrawerGL4.cpp224 …Uniform("invMapSizePO2", 1.0f / (gs->pwr2mapx * SQUARE_SIZE), 1.0f / (gs->pwr2mapy * SQUARE_SIZE));
/dports/games/spring/spring_98.0/rts/Map/SM3/
H A DSM3Map.cpp215 const float isy = gs->mapy / float(gs->pwr2mapy); in DrawMinimap()
/dports/games/spring/spring_98.0/rts/Rendering/
H A DFeatureDrawer.cpp198 SetTexGen(1.0f / (gs->pwr2mapx * SQUARE_SIZE), 1.0f / (gs->pwr2mapy * SQUARE_SIZE), 0.0f, 0.0f); in Draw()
/dports/games/spring/spring_98.0/rts/Lua/
H A DLuaOpenGLUtils.cpp576 return int2(gs->pwr2mapx, gs->pwr2mapy); in GetSize()