Skip to content

Instantly share code, notes, and snippets.

@PoetaKodu
Created January 28, 2017 20:08
Show Gist options
  • Save PoetaKodu/78a6ade49cf6314024ab41c84824629f to your computer and use it in GitHub Desktop.
Save PoetaKodu/78a6ade49cf6314024ab41c84824629f to your computer and use it in GitHub Desktop.
#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