source: opengl-game/sfml-game.cpp@ b155f13

feature/imgui-sdl points-test
Last change on this file since b155f13 was 5c02ddd, checked in by Dmitry Portnoy <dmp1488@…>, 6 years ago

Create an SFML demo project and update the TODO

  • Property mode set to 100644
File size: 459 bytes
RevLine 
[5c02ddd]1#include <SFML/Graphics.hpp>
2
3int main() {
4 sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
5 sf::CircleShape shape(100.f);
6 shape.setFillColor(sf::Color::Green);
7
8 while (window.isOpen()) {
9 sf::Event event;
10 while (window.pollEvent(event))
11 {
12 if (event.type == sf::Event::Closed)
13 window.close();
14 }
15
16 window.clear();
17 window.draw(shape);
18 window.display();
19 }
20
21 return 0;
22}
Note: See TracBrowser for help on using the repository browser.