1
General / Re: How to block window resize ?
« on: March 17, 2013, 12:38:27 pm »Code: [Select]
sf::RenderWindow App ( sf::VideoMode (500,500) , "SFML App" , sf::Style::Close) ;
That's all I do.
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.
sf::RenderWindow App ( sf::VideoMode (500,500) , "SFML App" , sf::Style::Close) ;
#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;
}