Hello, I'm running SFML 2.1 with revision (
https://github.com/SFML/SFML/tree/56c2eb8cea5253e079bbf10aad80503512b87dd9) which is only 3 months old.
Take a look at this code:
int main()
{
sf::RenderWindow window(sf::VideoMode(80, 60), "SFML window");
window.setFramerateLimit(30);
sf::VertexArray points;
points.setPrimitiveType(sf::Points);
points.append(sf::Vertex(sf::Vector2f(0, 0), sf::Color(255, 0, 0, 255)));
points.append(sf::Vertex(sf::Vector2f(1, 1), sf::Color(255, 0, 0, 255)));
points.append(sf::Vertex(sf::Vector2f(2, 2), sf::Color(255, 0, 0, 255)));
sf::VertexArray lines;
lines.setPrimitiveType(sf::Lines);
lines.append(sf::Vertex(sf::Vector2f(0, 0), sf::Color(0, 255, 0, 127)));
lines.append(sf::Vertex(sf::Vector2f(5, 5), sf::Color(0, 255, 0, 127)));
while (window.isOpen())
{
window.clear();
window.draw(points);
window.draw(lines);
window.display();
}
return 0;
}
This is currently producing this as a result (zoomed in):
Shouldn't it be something more like this?