Skip to content

Instantly share code, notes, and snippets.

@maidis
Created February 25, 2011 13:30
Show Gist options
  • Save maidis/843777 to your computer and use it in GitHub Desktop.
Save maidis/843777 to your computer and use it in GitHub Desktop.
tam ekran bir pencere örneği
#include <SFML/Window.hpp>
int main()
{
// Ana pencereyi oluştur
sf::Window App(sf::VideoMode::GetDesktopMode(), "SFML Penceresi", sf::Style::Fullscreen);
// Ana döngüye başla
bool Running = true;
while (Running)
{
App.Display();
sf::Event Event;
while (App.GetEvent(Event))
{
// Pencere kapandı
if (Event.Type == sf::Event::Closed)
App.Close();
// ESC'ye basıldı
if ((Event.Type == sf::Event::KeyPressed) && (Event.Key.Code == sf::Key::Escape))
App.Close();
}
}
return EXIT_SUCCESS;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment