Created
February 25, 2011 13:30
-
-
Save maidis/843777 to your computer and use it in GitHub Desktop.
tam ekran bir pencere örneği
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/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