| 298 | } |
| 299 | |
| 300 | void DrawUtilities::rectanglePixels(const Vector3f & color, const Vector2f & center, const Vector2f & diagonalPixs, bool fill, float alpha, const Viewport & vp) |
| 301 | { |
| 302 | Vector2f diagUV = diagonalPixs.cwiseQuotient(vp.finalSize()); |
| 303 | Vector2f tl = center - diagUV; |
| 304 | Vector2f br = center + diagUV; |
| 305 | rectangle(color, tl, br, fill, alpha, vp); |
| 306 | } |
| 307 | |
| 308 | void DrawUtilities::circle(const Vector3f & color, const Vector2f & center, float radius, bool fill, float alpha, const Vector2f & scaling, int precision) |
| 309 | { |
no test coverage detected