Home
last modified time | relevance | path

Searched refs:g_Renderer (Results 1 – 25 of 65) sorted by relevance

123

/dports/games/0ad/0ad-0.0.23b-alpha/source/graphics/
H A DLOSTexture.cpp86 g_Renderer.m_Options.m_SmoothLOS = false; in CreateShader()
122 g_Renderer.BindTexture(unit, m_Texture); in BindTexture()
181 const SViewPort oldVp = g_Renderer.GetViewport(); in InterpolateLOS()
183 g_Renderer.SetViewport(vp); in InterpolateLOS()
208 g_Renderer.SetViewport(oldVp); in InterpolateLOS()
266 g_Renderer.BindTexture(unit, m_TextureSmooth1); in ConstructTexture()
273 g_Renderer.BindTexture(unit, m_TextureSmooth2); in ConstructTexture()
281 g_Renderer.BindTexture(unit, m_Texture); in ConstructTexture()
351 g_Renderer.BindTexture(unit, m_TextureSmooth1); in RecomputeTexture()
353 g_Renderer.BindTexture(unit, m_TextureSmooth2); in RecomputeTexture()
[all …]
H A DGameView.cpp489 g_Renderer.RenderScene(*this); in Render()
532 g_Renderer.MakeShadersDirty(); in CheckLightEnv()
552 g_Renderer.UnloadAlphaMaps(); in UnloadResources()
586 g_Renderer.GetWaterManager()->m_WaterHeight); in FocusHeight()
595 g_Renderer.GetWaterManager()->m_WaterHeight); in FocusHeight()
1079 g_Renderer.SetWaterRenderMode(EDGED_FACES); in HandleEvent()
1085 g_Renderer.SetWaterRenderMode(WIREFRAME); in HandleEvent()
1086 g_Renderer.SetModelRenderMode(WIREFRAME); in HandleEvent()
1090 g_Renderer.SetTerrainRenderMode(SOLID); in HandleEvent()
1091 g_Renderer.SetWaterRenderMode(SOLID); in HandleEvent()
[all …]
H A DOverlay.cpp55 m_TextureBase = g_Renderer.GetTextureManager().CreateTexture(texturePropsBase); in CreateOverlayTexture()
56 m_TextureMask = g_Renderer.GetTextureManager().CreateTexture(texturePropsMask); in CreateOverlayTexture()
H A DObjectEntry.cpp82 CMaterial material = g_Renderer.GetMaterialManager().LoadMaterial(m_Base->m_Material); in BuildVariation()
88 CTexturePtr texture = g_Renderer.GetTextureManager().CreateTexture(textureProps); in BuildVariation()
105 …m_Model = new CModelParticleEmitter(g_Renderer.GetParticleManager().LoadEmitterType(variation.part… in BuildVariation()
128 model->SetMaterial(g_Renderer.GetMaterialManager().LoadMaterial(m_Base->m_Material)); in BuildVariation()
139 CTexturePtr texture = g_Renderer.GetTextureManager().CreateTexture(textureProps); in BuildVariation()
H A DParticleEmitter.cpp181 CLOSTexture& los = g_Renderer.GetScene().GetLOSTexture(); in Bind()
185 const CLightEnv& lightEnv = g_Renderer.GetLightEnv(); in Bind()
219 g_Renderer.GetStats().m_DrawCalls++; in RenderArray()
220 g_Renderer.GetStats().m_Particles += m_Particles.size(); in RenderArray()
/dports/games/0ad/0ad-0.0.23b-alpha/source/renderer/
H A DTerrainRenderer.cpp191 g_Renderer.BindTexture(0, 0); in RenderTerrain()
262 g_Renderer.BindTexture(1, 0); in RenderTerrain()
281 const CLightEnv& lightEnv = g_Renderer.GetLightEnv(); in RenderTerrain()
356 g_Renderer.BindTexture(1, 0); in RenderTerrain()
519 g_Renderer.BindTexture(1, 0); in RenderTerrainShader()
520 g_Renderer.BindTexture(2, 0); in RenderTerrainShader()
521 g_Renderer.BindTexture(3, 0); in RenderTerrainShader()
686 …glCopyTexImage2D(GL_TEXTURE_2D, 0, GL_DEPTH_COMPONENT, 0, 0, g_Renderer.GetWidth(), g_Renderer.Get… in RenderFancyWater()
742 const CCamera& camera = g_Renderer.GetViewCamera(); in RenderFancyWater()
793 …m->fancyWaterShader->Uniform(str_screenSize, (float)g_Renderer.GetWidth(), (float)g_Renderer.GetHe… in RenderFancyWater()
[all …]
H A DPostprocManager.cpp81 m_Width = g_Renderer.GetWidth(); in Initialize()
82 m_Height = g_Renderer.GetHeight(); in Initialize()
93 m_Width = g_Renderer.GetWidth(); in Resize()
94 m_Height = g_Renderer.GetHeight(); in Resize()
208 g_Renderer.GetSystemShaderDefines(), defines); in ApplyBlurDownscale2x()
227 g_Renderer.SetViewport(vp); in ApplyBlurDownscale2x()
252 g_Renderer.SetViewport(oldVp); in ApplyBlurDownscale2x()
276 g_Renderer.SetViewport(vp); in ApplyBlurGauss()
301 g_Renderer.SetViewport(oldVp); in ApplyBlurGauss()
322 g_Renderer.SetViewport(vp); in ApplyBlurGauss()
[all …]
H A DShadowMap.cpp385 if (g_Renderer.m_ShadowMapSize != 0) in CreateTexture()
395 …int shadow_map_size = (int)round_up_to_pow2((unsigned)std::max(g_Renderer.GetWidth(), g_Renderer.G… in CreateTexture()
445 g_Renderer.BindTexture(0, DummyTexture); in CreateTexture()
454 g_Renderer.BindTexture(0, Texture); in CreateTexture()
529 g_Renderer.m_Options.m_Shadows = false; in CreateTexture()
564 g_Renderer.SetViewport(vp); in BeginRender()
571 g_Renderer.SetViewCamera(c); in BeginRender()
598 const SViewPort vp = { 0, 0, g_Renderer.GetWidth(), g_Renderer.GetHeight() }; in EndRender()
599 g_Renderer.SetViewport(vp); in EndRender()
753 g_Renderer.BindTexture(0, m->Texture); in RenderDebugTexture()
[all …]
H A DOverlayRenderer.cpp422 if (g_Renderer.GetRenderPath() == CRenderer::RP_SHADER) in RenderTexturedOverlayLines()
465 g_Renderer.BindTexture(1, 0); in RenderTexturedOverlayLines()
466 g_Renderer.BindTexture(0, 0); in RenderTexturedOverlayLines()
506 if (g_Renderer.GetRenderPath() == CRenderer::RP_SHADER) in RenderQuadOverlays()
561 g_Renderer.GetStats().m_DrawCalls++; in RenderQuadOverlays()
571 g_Renderer.BindTexture(1, 0); in RenderQuadOverlays()
572 g_Renderer.BindTexture(0, 0); in RenderQuadOverlays()
603 if (g_Renderer.GetRenderPath() == CRenderer::RP_SHADER) in RenderForegroundOverlays()
642 g_Renderer.GetStats().m_DrawCalls++; in RenderForegroundOverlays()
643 g_Renderer.GetStats().m_OverlayTris += 2; in RenderForegroundOverlays()
[all …]
H A DWaterManager.cpp160 if (!g_Renderer.GetCapabilities().m_PrettyWater) in ~WaterManager()
197 if (!g_Renderer.GetCapabilities().m_PrettyWater) in LoadWaterTextures()
239 m_RefTextureSize = g_Renderer.GetHeight(); in LoadWaterTextures()
321 g_Renderer.m_Options.m_WaterReflection = false; in LoadWaterTextures()
336 g_Renderer.m_Options.m_WaterRefraction = false; in LoadWaterTextures()
351 g_Renderer.m_Options.m_WaterRefraction = false; in LoadWaterTextures()
368 …glTexImage2D( GL_TEXTURE_2D, 0, GL_RGBA8, (GLsizei)g_Renderer.GetWidth(), (GLsizei)g_Renderer.GetH… in Resize()
371 …glTexImage2D( GL_TEXTURE_2D, 0, GL_RGBA8, (GLsizei)g_Renderer.GetWidth(), (GLsizei)g_Renderer.GetH… in Resize()
374 …ge2D( GL_TEXTURE_2D, 0, GL_DEPTH_COMPONENT32, (GLsizei)g_Renderer.GetWidth(), (GLsizei)g_Renderer.… in Resize()
404 if (!g_Renderer.GetCapabilities().m_PrettyWater) in UnloadWaterTextures()
[all …]
H A DParticleRenderer.cpp91 if (g_Renderer.GetRenderPath() == CRenderer::RP_SHADER) in PrepareForRendering()
93 m->shader = g_Renderer.GetShaderManager().LoadEffect(str_particle, context, CShaderDefines()); in PrepareForRendering()
94 …m->shaderSolid = g_Renderer.GetShaderManager().LoadEffect(str_particle_solid, context, CShaderDefi… in PrepareForRendering()
116 g_Renderer.GetViewCamera().m_Orientation.GetInverse(worldToCam); in PrepareForRendering()
131 shader->GetShader()->Uniform(str_transform, g_Renderer.GetViewCamera().GetViewProjection()); in RenderParticles()
132 …shader->GetShader()->Uniform(str_modelViewMatrix, g_Renderer.GetViewCamera().GetOrientation().GetI… in RenderParticles()
H A DPatchRData.cpp842 if (!g_Renderer.m_SkipSubmit) in RenderBases()
851 g_Renderer.m_Stats.m_DrawCalls++; in RenderBases()
1083 if (!g_Renderer.m_SkipSubmit) in RenderBlends()
1089 g_Renderer.m_Stats.m_DrawCalls++; in RenderBlends()
1090 g_Renderer.m_Stats.m_BlendSplats++; in RenderBlends()
1169 if (!g_Renderer.m_SkipSubmit) in RenderStreams()
1175 g_Renderer.m_Stats.m_DrawCalls++; in RenderStreams()
1238 if (!g_Renderer.m_SkipSubmit) in RenderSides()
1242 g_Renderer.m_Stats.m_DrawCalls++; in RenderSides()
1506 g_Renderer.m_Stats.m_DrawCalls++; in RenderWater()
[all …]
H A DDecalRData.cpp100 techBase = g_Renderer.GetShaderManager().LoadEffect( in RenderDecals()
174 if (!g_Renderer.m_SkipSubmit) in RenderDecals()
180 g_Renderer.m_Stats.m_DrawCalls++; in RenderDecals()
181 g_Renderer.m_Stats.m_TerrainTris += decal->m_IndexArray.GetNumVertices() / 3; in RenderDecals()
219 const CLightEnv& lightEnv = g_Renderer.GetLightEnv(); in BuildArrays()
220 bool cpuLighting = (g_Renderer.GetRenderPath() == CRenderer::RP_FIXED); in BuildArrays()
H A DVertexBuffer.cpp54 if (g_Renderer.m_Caps.m_VBO) in CVertexBuffer()
199 if (g_Renderer.m_Caps.m_VBO) in UpdateChunkVertices()
230 if (!g_Renderer.m_Caps.m_VBO) in Bind()
313 if (g_Renderer.m_Caps.m_VBO) in GetBindAddress()
321 if (g_Renderer.m_Caps.m_VBO) in Unbind()
H A DRenderModifiers.cpp76 shader->Uniform(str_transform, g_Renderer.GetViewCamera().GetViewProjection()); in BeginPass()
77 shader->Uniform(str_cameraPos, g_Renderer.GetViewCamera().GetOrientation().GetTranslation()); in BeginPass()
100 CLOSTexture& los = g_Renderer.GetScene().GetLOSTexture(); in BeginPass()
H A DSkyManager.cpp250 …glRotatef( 180.0f /*+ 45.0f*/ + RADTODEG(g_Renderer.GetLightEnv().GetRotation()), 0.0f, 1.0f, 0.0f… in RenderSky()
260 if (g_Renderer.GetRenderPath() == CRenderer::RP_SHADER) in RenderSky()
262 skytech = g_Renderer.GetShaderManager().LoadEffect(str_sky_simple); in RenderSky()
313 if (g_Renderer.GetRenderPath() == CRenderer::RP_SHADER) in RenderSky()
/dports/games/0ad/0ad-0.0.23b-alpha/source/gui/
H A DMiniMap.cpp265 hitPt[1] = m_Camera->GetWorldCoordinates(g_Renderer.GetWidth(), g_Renderer.GetHeight(), h); in DrawViewRect()
295 …CShaderTechniquePtr tech = g_Renderer.GetShaderManager().LoadEffect(str_minimap, g_Renderer.GetSys… in DrawViewRect()
304 if (!g_Renderer.m_SkipSubmit) in DrawViewRect()
368 if (!g_Renderer.m_SkipSubmit) in DrawTexture()
432 …tech = g_Renderer.GetShaderManager().LoadEffect(str_minimap, g_Renderer.GetSystemShaderDefines(), … in Draw()
464 …tech = g_Renderer.GetShaderManager().LoadEffect(str_minimap, g_Renderer.GetSystemShaderDefines(), … in Draw()
484 …tech = g_Renderer.GetShaderManager().LoadEffect(str_minimap, g_Renderer.GetSystemShaderDefines(), … in Draw()
586 if (!g_Renderer.m_SkipSubmit) in Draw()
589 g_Renderer.GetStats().m_DrawCalls++; in Draw()
614 g_Renderer.BindTexture(0, m_TerrainTexture); in CreateTextures()
[all …]
H A DGUIRenderer.cpp215 CTexturePtr texture = g_Renderer.GetTextureManager().CreateTexture(textureProps); in UpdateDrawCallCache()
238 Call.m_Shader = g_Renderer.GetShaderManager().LoadEffect(str_gui_solid); in UpdateDrawCallCache()
244 Call.m_Shader = g_Renderer.GetShaderManager().LoadEffect(str_gui_add); in UpdateDrawCallCache()
253 Call.m_Shader = g_Renderer.GetShaderManager().LoadEffect(str_gui_grayscale); in UpdateDrawCallCache()
257 Call.m_Shader = g_Renderer.GetShaderManager().LoadEffect(str_gui_solid_mask); in UpdateDrawCallCache()
263 Call.m_Shader = g_Renderer.GetShaderManager().LoadEffect(str_gui_basic); in UpdateDrawCallCache()
268 Call.m_Shader = g_Renderer.GetShaderManager().LoadEffect(str_gui_basic); in UpdateDrawCallCache()
/dports/games/0ad/0ad-0.0.23b-alpha/source/tools/atlas/GameInterface/
H A DActorViewer.cpp453 m.OldSky = g_Renderer.GetSkyManager()->m_RenderSky; in SetEnabled()
454 g_Renderer.GetSkyManager()->m_RenderSky = false; in SetEnabled()
456 m.OldWater = g_Renderer.GetWaterManager()->m_RenderWater; in SetEnabled()
463 g_Renderer.GetSkyManager()->m_RenderSky = m.OldSky; in SetEnabled()
464 g_Renderer.GetWaterManager()->m_RenderWater = m.OldWater; in SetEnabled()
502 g_Renderer.SetClearColor(m.Background); in Render()
505 g_Renderer.SetSimulation(&m.Simulation2); in Render()
507 g_Renderer.BeginFrame(); in Render()
523 g_Renderer.SetSceneCamera(camera, camera); in Render()
525 g_Renderer.RenderScene(m); in Render()
[all …]
/dports/games/0ad/0ad-0.0.23b-alpha/source/ps/
H A DWorld.cpp79 CRenderer::IsInitialised() ? g_Renderer.GetWaterManager() : NULL, in RegisterInit()
80 CRenderer::IsInitialised() ? g_Renderer.GetSkyManager() : NULL, in RegisterInit()
83 pTriggerManager, CRenderer::IsInitialised() ? &g_Renderer.GetPostprocManager() : NULL, in RegisterInit()
102 CRenderer::IsInitialised() ? g_Renderer.GetWaterManager() : NULL, in RegisterInitRMS()
103 CRenderer::IsInitialised() ? g_Renderer.GetSkyManager() : NULL, in RegisterInitRMS()
106 pTriggerManager, CRenderer::IsInitialised() ? &g_Renderer.GetPostprocManager() : NULL, in RegisterInitRMS()
/dports/games/0ad/0ad-0.0.23b-alpha/source/ps/GameSetup/
H A DGameSetup.cpp211 g_Renderer.SetSimulation(g_Game->GetSimulation2()); in Render()
214 g_Renderer.BeginFrame(); in Render()
223 g_Renderer.RenderTextOverlays(); in Render()
318 g_Renderer.EndFrame(); in Render()
583 g_Renderer.SetOptionBool(CRenderer::OPT_NOVBO, g_NoGLVBO); in InitRenderer()
605 g_Renderer.SetOptionBool(CRenderer::OPT_FOG, g_Fog); in InitRenderer()
621 g_Renderer.Open(g_xres, g_yres); in InitRenderer()
626 g_Renderer.SetLightEnv(&g_LightEnv); in InitRenderer()
635 g_Renderer.SetViewport(vp); in InitRenderer()
694 g_Renderer.ResetState(); in EndGame()
[all …]
/dports/games/0ad/0ad-0.0.23b-alpha/source/renderer/scripting/
H A DJSInterface_Renderer.cpp31 return g_Renderer.GetOptionBool(CRenderer::OPT_##NAME); \
36 g_Renderer.SetOptionBool(CRenderer::OPT_##NAME, Enabled); \
60 return CRenderer::GetRenderPathName(g_Renderer.GetRenderPath()); in GetRenderPath()
65 g_Renderer.SetRenderPath(CRenderer::GetRenderPathByName(name)); in SetRenderPath()
70 g_Renderer.GetShadowMap().RecreateTexture(); in RecreateShadowMap()
75 return g_Renderer.GetTextureManager().TextureExists(filename); in TextureExists()
/dports/games/0ad/0ad-0.0.23b-alpha/source/tools/atlas/GameInterface/Handlers/
H A DEnvironmentHandlers.cpp48 WaterManager* wm = g_Renderer.GetWaterManager(); in GetSettings()
66 s.posteffect = g_Renderer.GetPostprocManager().GetPostEffect(); in GetSettings()
68 s.skyset = g_Renderer.GetSkyManager()->GetSkySet(); in GetSettings()
103 WaterManager* wm = g_Renderer.GetWaterManager(); in SetSettings()
124 g_Renderer.GetPostprocManager().SetPostEffect(posteffect); in SetSettings()
129 g_Renderer.GetSkyManager()->SetSkySet(skySet); in SetSettings()
209 std::vector<CStrW> skies = g_Renderer.GetSkyManager()->GetSkySets(); in QUERYHANDLER()
216 std::vector<CStrW> effects = g_Renderer.GetPostprocManager().GetPostEffects(); in QUERYHANDLER()
H A DGraphicsSetupHandlers.cpp200 g_Renderer.SetTerrainRenderMode(msg->wireframe ? EDGED_FACES : SOLID); in MESSAGEHANDLER()
201 g_Renderer.SetWaterRenderMode(msg->wireframe ? EDGED_FACES : SOLID); in MESSAGEHANDLER()
202 g_Renderer.SetModelRenderMode(msg->wireframe ? EDGED_FACES : SOLID); in MESSAGEHANDLER()
/dports/games/0ad/0ad-0.0.23b-alpha/source/simulation2/components/
H A DCCmpWaterManager.cpp82 g_Renderer.GetWaterManager()->m_WaterTexTimer += msgData.deltaSimTime; in HandleMessage()
102 g_Renderer.GetWaterManager()->RecomputeWaterData(); in RecomputeWaterData()
103 g_Renderer.GetWaterManager()->m_WaterHeight = m_WaterHeight.ToFloat(); in RecomputeWaterData()

123