| 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, |
nothing calls this directly
no test coverage detected