| 44 | private: |
| 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; |
no test coverage detected