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:
Matthew Territo
2016-07-20 16:33:37 -06:00
parent 3c53463a60
commit a2c96f5a36
8 changed files with 102 additions and 7 deletions

View File

@@ -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();