mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-18 17:59:51 -06:00
Added ability to cycle through average frametime, FPS and average FPS
"t" and "Shift+t" are Lua bindings in common.lua Maybe needs to be part of SettingsEngine instead, but the display code was already in RenderEngine, so it'll do for now on this branch
This commit is contained in:
@@ -61,6 +61,10 @@ bool SGCTWindowWrapper::windowHasResized() const {
|
||||
double SGCTWindowWrapper::averageDeltaTime() const {
|
||||
return sgct::Engine::instance()->getAvgDt();
|
||||
}
|
||||
|
||||
double SGCTWindowWrapper::deltaTime() const {
|
||||
return sgct::Engine::instance()->getDt();
|
||||
}
|
||||
|
||||
glm::vec2 SGCTWindowWrapper::mousePosition() const {
|
||||
int id = sgct::Engine::instance()->getCurrentWindowPtr()->getId();
|
||||
|
||||
Reference in New Issue
Block a user