emin2000
emin2000

Reputation: 19

Drawing points using SFML

I want to draw some points by giving their x y coordinates using SFML. Is there a specific SFML function (for instance, to draw a circle sf::CircleShape function is used) to draw points or it is done in a different way?

Upvotes: 2

Views: 5630

Answers (1)

user9607529
user9607529

Reputation:

Looking through the documentation I think you should use this.

sf::Vertex point(sf::Vector2f(10, 10), sf::Color::Black);
window.draw(&point, 1, sf::Points);

window is a sf::RenderTarget.

Upvotes: 4

Related Questions