Rigs of Rods 2026.01
Soft-body Physics Simulation
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes
OgreImGui Class Reference

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.

+ Inheritance diagram for OgreImGui:

Public Member Functions

void Init (float font_scale)
 
void ReloadFonts (float font_scale)
 
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 Member Functions

void AddFonts (float font_scale)
 

Private Attributes

std::unique_ptr< Ogre::ImGuiOverlay > m_imgui_overlay
 

Member Function Documentation

◆ AddFonts()

void OgreImGui::AddFonts ( float  font_scale)
private

Definition at line 95 of file OgreImGui.cpp.

◆ Init()

void OgreImGui::Init ( float  font_scale)

Definition at line 38 of file OgreImGui.cpp.

◆ InjectKeyPressed()

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

Definition at line 130 of file OgreImGui.cpp.

◆ InjectKeyReleased()

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

Definition at line 141 of file OgreImGui.cpp.

◆ InjectMouseMoved()

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

Definition at line 101 of file OgreImGui.cpp.

◆ ReloadFonts()

void OgreImGui::ReloadFonts ( float  font_scale)

Must not be called while an ImGui frame is in progress.

Definition at line 88 of file OgreImGui.cpp.

◆ renderQueueStarted()

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

Definition at line 147 of file OgreImGui.cpp.

◆ ResetAllMouseButtons()

void OgreImGui::ResetAllMouseButtons ( )

Definition at line 120 of file OgreImGui.cpp.

◆ SetMouseButtonState()

void OgreImGui::SetMouseButtonState ( OIS::MouseButtonID  id,
bool  down 
)

Definition at line 111 of file OgreImGui.cpp.

Field Documentation

◆ m_imgui_overlay

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

Definition at line 74 of file OgreImGui.h.


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