Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - MODOKI

Pages: [1]
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)),

Pages: [1]