Added Window::Close (soft way to close window)

Former-commit-id: 9d47ed3ed38d62928f3cb6356fed07501b5e92d5
This commit is contained in:
Lynix
2013-03-08 01:20:26 +01:00
parent 9f780ef2bd
commit 39e54474dd
3 changed files with 274 additions and 65 deletions

View File

@@ -164,12 +164,12 @@ int main()
}
case nzEventType_Quit: // L'utilisateur a cliqué sur la croix, ou l'OS veut terminer notre programme
window.Destroy(); // On ferme la fenêtre sans demander notre reste
window.Close(); // On demande la fermeture de la fenêtre (Qui aura lieu au prochain tour de boucle)
break;
case nzEventType_KeyPressed: // Une touche a été pressée !
if (event.key.code == NzKeyboard::Key::Escape)
window.Destroy();
window.Close();
break;
default: