mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-14 15:40:18 +00:00
added getFPS() method to OgreRenderer
Committer: sergoz <parapvr@yandex.ru>
This commit is contained in:
parent
7185eab18c
commit
c60a48b397
@ -27,6 +27,11 @@ void OgreRenderer::screenshot(const std::string &file)
|
|||||||
mWindow->writeContentsToFile(file);
|
mWindow->writeContentsToFile(file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
float OgreRenderer::getFPS()
|
||||||
|
{
|
||||||
|
return mWindow->getLastFPS();
|
||||||
|
}
|
||||||
|
|
||||||
bool OgreRenderer::configure(bool showConfig,
|
bool OgreRenderer::configure(bool showConfig,
|
||||||
const std::string &cfgPath,
|
const std::string &cfgPath,
|
||||||
const std::string &logPath,
|
const std::string &logPath,
|
||||||
|
@ -70,6 +70,8 @@ namespace Render
|
|||||||
/// Write a screenshot to file
|
/// Write a screenshot to file
|
||||||
void screenshot(const std::string &file);
|
void screenshot(const std::string &file);
|
||||||
|
|
||||||
|
float getFPS();
|
||||||
|
|
||||||
/// Get the Root
|
/// Get the Root
|
||||||
Ogre::Root *getRoot() { return mRoot; }
|
Ogre::Root *getRoot() { return mRoot; }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user