Problem with SFML in Code Blocks Windows 32 bit

2

I installed SFML in CodeBlocks using the instructions here

link

Then I compiled the example code from there, which should display a window with a green circle:

#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;
}

The expected window appears, but without the green circle and it is transparent. What's wrong?

    
asked by anonymous 14.07.2016 / 01:09

0 answers