8#ifndef W_LINE_DRAWER_HPP
9#define W_LINE_DRAWER_HPP
11#pragma GCC diagnostic push
12#pragma GCC diagnostic ignored "-Wfloat-equal"
13#pragma GCC diagnostic ignored "-Wswitch-default"
14#include <SFML/Graphics.hpp>
15#pragma GCC diagnostic pop
81 static float drawLine( sf::RenderWindow& window,
const sf::Vector2f& point1,
const sf::Vector2f& point2,
83 float dashLength = 20.0f,
float gapLength = 5.0f,
float patternOffset = 0.0f );
102 static void drawPolylineRound( sf::RenderWindow& window,
const std::vector<sf::Vector2f>& points,
const sf::Color& color,
104 float gapLength = 5.0f,
unsigned int arcResolution = 12 );
Utility class for rendering thick lines and polylines with style support.
Definition wLineDrawer.hpp:52
static void drawPolylineRound(sf::RenderWindow &window, const std::vector< sf::Vector2f > &points, const sf::Color &color, float thickness, LineStyleComponent::LineStyle style=LineStyleComponent::LineStyle::Solid, float dashLength=20.0f, float gapLength=5.0f, unsigned int arcResolution=12)
Draws a polyline (sequence of connected line segments) with optional round joins.
Definition wLineDrawer.cpp:113
static float drawLine(sf::RenderWindow &window, const sf::Vector2f &point1, const sf::Vector2f &point2, const sf::Color &color, float thickness, LineStyleComponent::LineStyle style=LineStyleComponent::LineStyle::Solid, float dashLength=20.0f, float gapLength=5.0f, float patternOffset=0.0f)
Draws a single thick line segment between two points.
Definition wLineDrawer.cpp:19
LineStyle
Available styles for line rendering.
Definition wLineStyleComponent.hpp:35
@ Solid
Definition wLineStyleComponent.hpp:36
Definition wColorComponent.cpp:9