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

Method Apply

libs/drape_frontend/render_node.hpp:46–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44private:
45 template <typename ParamsType>
46 void Apply(ref_ptr<dp::GraphicsContext> context, ref_ptr<gpu::ProgramManager> mng, ParamsType const & params)
47 {
48 auto prg = mng->GetProgram(m_state.GetProgram<gpu::Program>());
49 prg->Bind();
50 if (!m_isBuilt)
51 {
52 m_buffer->Build(context, prg);
53 m_isBuilt = true;
54 }
55
56 dp::ApplyState(context, prg, m_state);
57 mng->GetParamsSetter()->Apply(context, prg, params);
58 }
59
60 dp::RenderState m_state;
61 drape_ptr<dp::VertexArrayBuffer> m_buffer;

Callers 15

RenderLinesCapsMethod · 0.45
RenderLinesMethod · 0.45
RenderMarkersMethod · 0.45
RenderTextMethod · 0.45
RenderStubsMethod · 0.45
RenderTrafficMethod · 0.45
RenderMethod · 0.45
RenderSceneMethod · 0.45
PreRender3dLayerMethod · 0.45
RenderEmptyFrameMethod · 0.45
RenderTrackMethod · 0.45
EndFrameMethod · 0.45

Calls 5

ApplyStateFunction · 0.85
GetParamsSetterMethod · 0.80
GetProgramMethod · 0.45
BindMethod · 0.45
BuildMethod · 0.45

Tested by

no test coverage detected