| 75 | } |
| 76 | |
| 77 | void 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 | |
| 87 | void ScreenQuadRenderer::SetTextureRect(ref_ptr<dp::GraphicsContext> context, m2::RectF const & rect) |
| 88 | { |
no test coverage detected