1
System / namespace "sf" has no member "Vector2f"
« on: October 05, 2023, 10:00:44 pm »
The vector2f gives me error "namespace 'sf' nas no member 'Vector2f'" but that line is copy/paste from the header Vertex.hpp comments. i dont know why vector2 is an error on visual code
#include<SFML/Graphics.hpp>
#include<SFML/System.hpp>
#include<SFML/System/Vector2.hpp>
/...
window.clear(sf::Color::Black);
//draw everything here, create empty watever line
sf::Vertex pieceofshitline[] = {
//define points
sf::Vertex(sf::[u]Vector2f[/u]( 0, 0), sf::Color::Red, sf::Vector2f( 0, 0)),
#include<SFML/System.hpp>
#include<SFML/System/Vector2.hpp>
/...
window.clear(sf::Color::Black);
//draw everything here, create empty watever line
sf::Vertex pieceofshitline[] = {
//define points
sf::Vertex(sf::[u]Vector2f[/u]( 0, 0), sf::Color::Red, sf::Vector2f( 0, 0)),