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

Method Render

libs/drape/mesh_object.hpp:84–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82
83 template <typename TParamsSetter, typename TParams>
84 void Render(ref_ptr<dp::GraphicsContext> context, ref_ptr<dp::GpuProgram> program, dp::RenderState const & state,
85 ref_ptr<TParamsSetter> paramsSetter, TParams const & params)
86 {
87 Bind(context, program);
88
89 ApplyState(context, program, state);
90 paramsSetter->Apply(context, program, params);
91
92 DrawPrimitives(context);
93
94 Unbind(program);
95 }
96
97 template <typename TParamsSetter, typename TParams>
98 void Render(ref_ptr<dp::GraphicsContext> context, ref_ptr<dp::GpuProgram> program, dp::RenderState const & state,

Callers

nothing calls this directly

Calls 2

ApplyStateFunction · 0.85
ApplyMethod · 0.45

Tested by

no test coverage detected