#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;
}
It's literally just the code SFML has you use to test if it works
I would like to add that I was able to get this to work on windows in the past with Code Blocks and MINGW. Now I can't get it to work on Linux with CodeBlocks and GCC. I followed the instructions on how to get it working on CodeBlocks
exactly.