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

Method RenderTexture

libs/drape_frontend/screen_quad_renderer.cpp:77–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void ScreenQuadRenderer::RenderTexture(ref_ptr<dp::GraphicsContext> context, ref_ptr<gpu::ProgramManager> mng,
78 ref_ptr<dp::Texture> texture, float opacity, bool invertV)
79{
80 TextureRenderParams params;
81 params.SetParams(mng, std::move(texture), opacity, invertV);
82
83 auto program = mng->GetProgram(params.GetRenderState().GetProgram<gpu::Program>());
84 Base::Render(context, program, params.GetRenderState(), mng->GetParamsSetter(), params.GetProgramParams());
85}
86
87void ScreenQuadRenderer::SetTextureRect(ref_ptr<dp::GraphicsContext> context, m2::RectF const & rect)
88{

Callers 2

Render3dLayerMethod · 0.80

Calls 3

GetParamsSetterMethod · 0.80
SetParamsMethod · 0.45
GetProgramMethod · 0.45

Tested by

no test coverage detected