MCPcopy Create free account
hub / github.com/AbyssEngine/AbyssEngineOld / run

Method run

src/Abyss/AbyssEngine.cpp:310–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308}
309
310void AbyssEngine::run() {
311 SDL_ShowCursor(SDL_FALSE);
312 auto lastTime = std::chrono::high_resolution_clock::now();
313 while (_running) {
314 auto currentTime = std::chrono::high_resolution_clock::now();
315 auto deltaTime = currentTime - lastTime;
316 lastTime = currentTime;
317 processEvents(deltaTime);
318 render();
319 processSceneChange();
320
321 if (_videoStream != nullptr && !_videoStream->getIsPlaying()) {
322 _videoStream.reset(nullptr);
323 }
324 }
325}
326
327void AbyssEngine::setScene(std::unique_ptr<Common::Scene> scene) {
328 if (_nextScene != nullptr) {

Callers 1

mainFunction · 0.80

Calls 1

getIsPlayingMethod · 0.45

Tested by

no test coverage detected