Reputation: 19
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
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