I am getting a syntax error on the symbol sf::Lines, and I can't figure out why. I've also tried specifying it as sf::PrimitiveType::Lines. What am I doing wrong?
#include <vector>
#include <SFML/Graphics.hpp>
#include "Geometry.h"
using namespace DarkLoonMath;
class CSpaceRaceMap : sf::Drawable
{
private:
std::vector<TLineSegment2<float>> Lines;
sf::VertexArray Vertices(sf::Lines, 10);
const sf::Color MapLineColor = sf::Color::Green;
public:
CSpaceRaceMap();
~CSpaceRaceMap();
void AddLineSegment(TLineSegment2<float> S);
void Draw(sf::RenderTarget & target, const sf::RenderStates states);
void Update(sf::Time delta);
};