MCPcopy Create free account
hub / github.com/comaps/comaps / SetParams

Method SetParams

libs/drape_frontend/screen_quad_renderer.cpp:29–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27 }
28
29 void SetParams(ref_ptr<gpu::ProgramManager> gpuProgramManager, ref_ptr<dp::Texture> texture, float opacity,
30 bool invertV)
31 {
32 UNUSED_VALUE(gpuProgramManager);
33 m_state.SetTexture("u_colorTex", std::move(texture));
34 m_params.m_opacity = opacity;
35 m_params.m_invertV = invertV ? 1.0f : 0.0f;
36 }
37
38 dp::RenderState const & GetRenderState() const { return m_state; }
39 gpu::ScreenQuadProgramParams const & GetProgramParams() const { return m_params; }

Callers 1

RenderTextureMethod · 0.45

Calls 1

SetTextureMethod · 0.45

Tested by

no test coverage detected