RigsofRods
Soft-body Physics Simulation
|
DearIMGUI integration. More...
#include <OgreImGui.h>
Public Member Functions | |
void | Init () |
void | InjectMouseMoved (const OIS::MouseEvent &arg) |
void | SetMouseButtonState (OIS::MouseButtonID id, bool down) |
void | ResetAllMouseButtons () |
void | InjectKeyPressed (const OIS::KeyEvent &arg) |
void | InjectKeyReleased (const OIS::KeyEvent &arg) |
virtual void | renderQueueStarted (Ogre::uint8 queueGroupId, const Ogre::String &invocation, bool &skipThisInvocation) override |
Private Attributes | |
std::unique_ptr< Ogre::ImGuiOverlay > | m_imgui_overlay |
DearIMGUI integration.
Input handling is done by injecting OIS events to ImGUI Rendering is done via port of Ogre::ImGuiOverlay; this is temporary until we migrate to OGRE 1.12.x however, since our OGRE version doesn't have OverlayManager::addOverlay()
, we queue it for rendering ourselves via RenderQueueListener (code is shamelessly copy-pasted from OGRE)
Definition at line 54 of file OgreImGui.h.
void OgreImGui::Init | ( | ) |
void OgreImGui::InjectKeyPressed | ( | const OIS::KeyEvent & | arg | ) |
void OgreImGui::InjectKeyReleased | ( | const OIS::KeyEvent & | arg | ) |
void OgreImGui::InjectMouseMoved | ( | const OIS::MouseEvent & | arg | ) |
|
overridevirtual |
void OgreImGui::ResetAllMouseButtons | ( | ) |
void OgreImGui::SetMouseButtonState | ( | OIS::MouseButtonID | id, |
bool | down | ||
) |
|
private |
Definition at line 71 of file OgreImGui.h.