mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 10:23:51 +00:00
added getFPS() method to OgreRenderer
Committer: sergoz <parapvr@yandex.ru>
This commit is contained in:
parent
7185eab18c
commit
c60a48b397
2 changed files with 7 additions and 0 deletions
|
@ -27,6 +27,11 @@ void OgreRenderer::screenshot(const std::string &file)
|
|||
mWindow->writeContentsToFile(file);
|
||||
}
|
||||
|
||||
float OgreRenderer::getFPS()
|
||||
{
|
||||
return mWindow->getLastFPS();
|
||||
}
|
||||
|
||||
bool OgreRenderer::configure(bool showConfig,
|
||||
const std::string &cfgPath,
|
||||
const std::string &logPath,
|
||||
|
|
|
@ -70,6 +70,8 @@ namespace Render
|
|||
/// Write a screenshot to file
|
||||
void screenshot(const std::string &file);
|
||||
|
||||
float getFPS();
|
||||
|
||||
/// Get the Root
|
||||
Ogre::Root *getRoot() { return mRoot; }
|
||||
|
||||
|
|
Loading…
Reference in a new issue