RigsofRods
Soft-body Physics Simulation
Public Member Functions | Private Attributes
OgreImGui Class Reference

DearIMGUI integration. More...

#include <OgreImGui.h>

+ Inheritance diagram for OgreImGui:
+ Collaboration diagram for OgreImGui:

Public Member Functions

void Init ()
 
void InjectMouseMoved (const OIS::MouseEvent &arg)
 
void InjectMousePressed (const OIS::MouseEvent &arg, OIS::MouseButtonID id)
 
void InjectMouseReleased (const OIS::MouseEvent &arg, OIS::MouseButtonID id)
 
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::ImGuiOverlaym_imgui_overlay
 

Detailed Description

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.

Member Function Documentation

◆ Init()

void OgreImGui::Init ( )

Definition at line 38 of file OgreImGui.cpp.

+ Here is the caller graph for this function:

◆ InjectKeyPressed()

void OgreImGui::InjectKeyPressed ( const OIS::KeyEvent &  arg)

Definition at line 117 of file OgreImGui.cpp.

+ Here is the caller graph for this function:

◆ InjectKeyReleased()

void OgreImGui::InjectKeyReleased ( const OIS::KeyEvent &  arg)

Definition at line 128 of file OgreImGui.cpp.

+ Here is the caller graph for this function:

◆ InjectMouseMoved()

void OgreImGui::InjectMouseMoved ( const OIS::MouseEvent &  arg)

Definition at line 89 of file OgreImGui.cpp.

+ Here is the caller graph for this function:

◆ InjectMousePressed()

void OgreImGui::InjectMousePressed ( const OIS::MouseEvent &  arg,
OIS::MouseButtonID  id 
)

Definition at line 99 of file OgreImGui.cpp.

+ Here is the caller graph for this function:

◆ InjectMouseReleased()

void OgreImGui::InjectMouseReleased ( const OIS::MouseEvent &  arg,
OIS::MouseButtonID  id 
)

Definition at line 108 of file OgreImGui.cpp.

+ Here is the caller graph for this function:

◆ renderQueueStarted()

void OgreImGui::renderQueueStarted ( Ogre::uint8  queueGroupId,
const Ogre::String &  invocation,
bool &  skipThisInvocation 
)
overridevirtual

Definition at line 134 of file OgreImGui.cpp.

+ Here is the call graph for this function:

Field Documentation

◆ m_imgui_overlay

std::unique_ptr<Ogre::ImGuiOverlay> OgreImGui::m_imgui_overlay
private

Definition at line 71 of file OgreImGui.h.


The documentation for this class was generated from the following files: