/dports/games/spring/spring_98.0/rts/Map/ |
H A D | BaseGroundDrawer.cpp | 47 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 D | ReadMap.cpp | 159 gs->pwr2mapy = next_power_of_2(gs->mapy); in Initialize()
|
/dports/games/spring/spring_98.0/rts/Sim/Misc/ |
H A D | GlobalSynced.cpp | 42 CR_MEMBER(pwr2mapy), 70 pwr2mapy = mapy; //next_power_of_2(mapy); in CGlobalSynced()
|
H A D | GlobalSynced.h | 132 int pwr2mapy; variable
|
/dports/games/spring/spring_98.0/rts/Map/SMF/ |
H A D | SMFRenderState.cpp | 153 …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 D | SMFReadMap.cpp | 283 …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 D | RefractWater.cpp | 96 float tplane[] = { 0.0f, 0.0f, 1.0f / (gs->pwr2mapy * SQUARE_SIZE), 0.0f}; in SetupWaterDepthTex()
|
H A D | GrassDrawer.cpp | 203 …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 D | DynWater.cpp | 345 …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 D | AdvTreeDrawer.cpp | 174 …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 D | BumpWater.cpp | 469 const float shadingZ = (float)gs->mapy / gs->pwr2mapy; in CBumpWater()
|
/dports/games/spring/spring_98.0/rts/Rendering/Env/Decals/ |
H A D | GroundDecalHandler.cpp | 179 …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 D | DecalsDrawerGL4.cpp | 224 …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 D | SM3Map.cpp | 215 const float isy = gs->mapy / float(gs->pwr2mapy); in DrawMinimap()
|
/dports/games/spring/spring_98.0/rts/Rendering/ |
H A D | FeatureDrawer.cpp | 198 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 D | LuaOpenGLUtils.cpp | 576 return int2(gs->pwr2mapx, gs->pwr2mapy); in GetSize()
|