| 175 | } |
| 176 | |
| 177 | void CanvasWidget::renderImageRect(Vec2F const& renderingOffset, String const& texName, RectF const& texCoords, RectF const& screenCoords, Vec4B const& color) { |
| 178 | auto& context = GuiContext::singleton(); |
| 179 | if (m_ignoreInterfaceScale) |
| 180 | context.drawQuad(texName, texCoords, screenCoords.translated(renderingOffset), color); |
| 181 | else |
| 182 | context.drawQuad(texName, texCoords, screenCoords.scaled(context.interfaceScale()).translated(renderingOffset * context.interfaceScale()), color); |
| 183 | } |
| 184 | |
| 185 | void CanvasWidget::renderDrawable(Vec2F const& renderingOffset, Drawable drawable, Vec2F const& screenPos) { |
| 186 | auto& context = GuiContext::singleton(); |
nothing calls this directly
no test coverage detected