1
General / Re: Getting Started: Runtime Crash
« on: November 04, 2012, 06:58:23 pm »
By the way I can't even run the example files found from SFML-2.0-rc\examples\shader. I start the exe file but nothing happens.
![Shocked :o](https://www.sfml-dev.org/forums/Smileys/default/shocked.gif)
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
#include <SFML/Graphics.hpp>
using namespace sf;
int main()
{
RenderWindow window(VideoMode(200, 200), "SFML works!");
CircleShape shape(100.f);
shape.setFillColor(Color::Green);
while (window.isOpen())
{
Event event;
while (window.pollEvent(event))
{
if (event.type == Event::Closed)
window.close();
}
window.clear();
window.draw(shape);
window.display();
}
return 0;
}