Skip to content
Snippets Groups Projects
Commit 45cad214 authored by Sreekanth Arikatla's avatar Sreekanth Arikatla
Browse files

Merge branch 'printUserControls' into 'master'

ENH: Print the user controls

See merge request !218
parents 77268e45 8b50def8
No related branches found
No related tags found
No related merge requests found
......@@ -368,6 +368,8 @@ SimulationManager::startViewer(const bool debug /*= true*/)
// Start Rendering
if (!m_viewer->isRendering())
{
this->printUserControlsInfo();
LOG(INFO) << "Starting viewer";
m_viewer->startRenderingLoop(); // Infinite loop
......@@ -382,6 +384,20 @@ SimulationManager::startViewer(const bool debug /*= true*/)
}
}
void
SimulationManager::printUserControlsInfo()
{
LOG(INFO) <<
"\n------------------------\n" <<
" User controls\n" <<
"------------------------\n" <<
"<space> - pause or unpause simulation\n" <<
" R/r - reset simulation\n" <<
" D/d - toggle between debug and simulation rendering modes\n" <<
" P/p - Display render frame rate on the screen\n" <<
"------------------------\n\n";
}
void
SimulationManager::runSimulation()
{
......
......@@ -151,6 +151,11 @@ public:
///
void startViewer(const bool debug = true);
///
/// \brief Print user keyboard controls
///
void printUserControlsInfo();
///
/// \brief Launch simulation for the first time.
/// 1. Initialize the active scene if not initialized already.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment