When I fill up a
sf::VertexArray with a primitive type as
Points, it does not draw all points I add to the array. For example, a vertex array filled as
sf::VertexArray vertexarray(sf::Points);
for (int i = 50; i < 400; i++) {
sf::Vertex vertex(sf::Vector2f(i,50),sf::Color::Green);
vertexarray.append(vertex);
}
will show something like
which is not what I intended.
How is this happening? Do the vertex coordinates not match the window coordinates exactly or something along these lines?
I'm using this to try and check my algorithms to make sure I have collected all points and didn't omit any. I'll be using it for quad-trees and pixel perfect collision.