MODULE v1.8.0draw
kn::draw Declared in kraken/graphics/Draw.hpp
Reference
C++ API void circle(const Circle &circle, const Color &color, double thickness=0.0, int numSegments=24)
No description in the source header.
void circles(const std::vector< Circle > &circles, const Color &color, double thickness=0.0, int numSegments=24)
No description in the source header.
void capsule(const Capsule &capsule, const Color &color, double thickness=0.0, int numSegments=24)
No description in the source header.
void capsules(const std::vector< Capsule > &capsules, const Color &color, double thickness=0.0, int numSegments=24)
No description in the source header.
void ellipse(Rect bounds, const Color &color, double thickness=0.0, int numSegments=24)
No description in the source header.
void ellipses(const std::vector< Rect > &bounds, const Color &color, double thickness=0.0, int numSegments=24)
No description in the source header.
void point(Vec2 point, const Color &color)
No description in the source header.
void points(const std::vector< Vec2 > &points, const Color &color)
No description in the source header.
void line(Line line, const Color &color, double thickness=1.0)
No description in the source header.
void lines(const std::vector< Line > &lines, const Color &color, double thickness=1.0)
No description in the source header.
void rect(Rect rect, const Color &color, int thickness=0, double borderRadius=0.0, double radiusTopLeft=-1.0, double radiusTopRight=-1.0, double radiusBottomRight=-1.0, double radiusBottomLeft=-1.0)
No description in the source header.
void rects(const std::vector< Rect > &rects, const Color &color, int thickness=0, double borderRadius=0.0, double radiusTopLeft=-1.0, double radiusTopRight=-1.0, double radiusBottomRight=-1.0, double radiusBottomLeft=-1.0)
No description in the source header.
void polygon(const Polygon &polygon, const Color &color, bool filled=true)
No description in the source header.
void polygons(const std::vector< Polygon > &polygons, const Color &color, bool filled=true)
No description in the source header.
void geometry(const Texture *texture, const std::vector< Vertex > &vertices, const std::vector< int > &indices={})
No description in the source header.
void bezier(const std::vector< Vec2 > &controlPoints, const Color &color, double thickness=1.0, int numSegments=24)
No description in the source header.
void sector(const Circle &circle, double startAngle, double endAngle, const Color &color, double thickness=0.0, int numSegments=24)
No description in the source header.
void polyline(const std::vector< Vec2 > &points, const Color &color, double thickness=1.0, bool closed=false)
No description in the source header.