YL
Size: a a a
YL
О
О
V
V
while (window.isOpen())
, while (window.pollEvent(event))
— якась фигняVD
V
О
#include <SFML/Graphics.hpp>
int main() {
sf::RenderWindow window(sf::VideoMode(600,400),"Tetris");
while(window.isOpen()) {
sf::Event event;
while(window.pollEvent(event)) {
if(event.type == sf::Event::Closed) return 0;
}
}
}
VD
while (window.isOpen())
, while (window.pollEvent(event))
— якась фигняVD
О
V
VD
V
Q[Core/Gui]Application a
→ a.exec()
VD
Q[Core/Gui]Application a
→ a.exec()
VD
YL
V
VD