1
#include <SFML/Graphics.hpp>
5
// Create the main window
6
sf::RenderWindow App(sf::VideoMode(800, 600), "SFML window");
8
// Load a sprite to display
10
if (!Image.LoadFromFile("cb.bmp"))
12
sf::Sprite Sprite(Image);
14
// Start the game loop
15
while (App.IsOpened())
19
while (App.GetEvent(Event))
21
// Close window : exit
22
if (Event.Type == sf::Event::Closed)