l'espoir renaît????

This commit is contained in:
2025-03-23 11:50:55 +01:00
parent 8635d4b853
commit 92b58c4b98
6 changed files with 72 additions and 38 deletions

View File

@@ -19,7 +19,6 @@ GraphApp::GraphApp() {
void GraphApp::run() {
changeVideoMode(*this->renderWindow, this->settings->getVideoMode());
std::cout << renderWindow->getSize().x << " " << renderWindow->getSize().y << std::endl;
this->menuStack->push(std::make_shared<MainAppMenu>(this->menuStack, this->settings, this->renderWindow));
bool quit = false;
@@ -34,7 +33,6 @@ void GraphApp::run() {
if (!quit) {
if (clock.getElapsedTime().asMilliseconds() > timeAtNextFrame) {
timeAtNextFrame += TIME_BETWEEN_FRAMES;
this->menuStack->top()->computeFrame();
if (this->menuStack->empty()) {
@@ -43,6 +41,10 @@ void GraphApp::run() {
else {
this->menuStack->top()->drawFrame();
}
while (clock.getElapsedTime().asMilliseconds() > timeAtNextFrame) {
timeAtNextFrame += TIME_BETWEEN_FRAMES;
}
}
}
}