MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / drawLine

Method drawLine

source/windowing/StarCanvasWidget.cpp:54–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54void CanvasWidget::drawLine(Vec2F const& begin, Vec2F const end, Vec4B const& color, float lineWidth) {
55 m_renderOps.append(make_tuple(begin, end, color, lineWidth));
56}
57
58void CanvasWidget::drawRect(RectF const& coords, Vec4B const& color) {
59 m_renderOps.append(make_tuple(coords, color));

Callers 1

renderLineMethod · 0.45

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected