I installed SFML in my CodeBlocks, following all instructions from here:
http://www.sfml-dev.org/tutorials/2.2/start-cb.php
This code should display a window with a green circle(I'm using dinamic library, and I put all necessary dll in the exe folder)
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
sf::CircleShape shape(100.f);
shape.setFillColor(sf::Color::Green);
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
window.clear();
window.draw(shape);
window.display();
}
return 0;
}
But what I get is a transparent window, without the circle. What is wrong?
I hope that it isn't my computer that can't run OpenGl