Created
January 28, 2017 20:08
-
-
Save PoetaKodu/78a6ade49cf6314024ab41c84824629f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SFML/Graphics.hpp> | |
#include <SFML/Window.hpp> | |
#include <SFML/System.hpp> | |
int main() | |
{ | |
sf::RenderWindow window(sf::VideoMode(800, 600, 32), "Tworzenie gier - rozszerzalny kod wzorem Unreal Engine 4.", sf::Style::Close); | |
while(window.isOpen()) | |
{ | |
sf::Event windowEvent; | |
while(window.pollEvent(windowEvent)) | |
{ | |
if(windowEvent.type == sf::Event::Closed) | |
window.close(); | |
} | |
window.clear(sf::Color::Black); | |
window.display(); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment