feature/imgui-sdl
points-test
Last change
on this file since 3effd81 was 5c02ddd, checked in by Dmitry Portnoy <dmp1488@…>, 7 years ago |
Create an SFML demo project and update the TODO
|
-
Property mode
set to
100644
|
File size:
459 bytes
|
Line | |
---|
1 | #include <SFML/Graphics.hpp>
|
---|
2 |
|
---|
3 | int 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.