![]() |
RigsofRods
2023.09
Soft-body Physics Simulation
|
Central setup and event handler for input/windowing/rendering. More...
#include <AppContext.h>
Inheritance diagram for RoR::AppContext:Public Member Functions | |
| void | SetUpThreads () |
| bool | SetUpProgramPaths () |
| void | SetUpLogging () |
| bool | SetUpResourcesDir () |
| bool | SetUpRendering () |
| bool | SetUpConfigSkeleton () |
| bool | SetUpInput () |
| void | SetUpObsoleteConfMarker () |
| Ogre::RenderWindow * | CreateCustomRenderWindow (std::string const &name, int width, int height) |
| void | CaptureScreenshot () |
| void | ActivateFullscreen (bool val) |
| Ogre::Root * | GetOgreRoot () |
| Ogre::Viewport * | GetViewport () |
| Ogre::RenderWindow * | GetRenderWindow () |
| RoR::ForceFeedback & | GetForceFeedback () |
| std::thread::id | GetMainThreadID () |
Private Member Functions | |
| virtual void | windowResized (Ogre::RenderWindow *rw) override |
| virtual void | windowFocusChange (Ogre::RenderWindow *rw) override |
| virtual bool | mouseMoved (const OIS::MouseEvent &arg) override |
| virtual bool | mousePressed (const OIS::MouseEvent &arg, OIS::MouseButtonID id) override |
| virtual bool | mouseReleased (const OIS::MouseEvent &arg, OIS::MouseButtonID id) override |
| virtual bool | keyPressed (const OIS::KeyEvent &arg) override |
| virtual bool | keyReleased (const OIS::KeyEvent &arg) override |
| virtual bool | buttonPressed (const OIS::JoyStickEvent &arg, int button) override |
| virtual bool | buttonReleased (const OIS::JoyStickEvent &arg, int button) override |
| virtual bool | axisMoved (const OIS::JoyStickEvent &arg, int axis) override |
| virtual bool | sliderMoved (const OIS::JoyStickEvent &arg, int) override |
| virtual bool | povMoved (const OIS::JoyStickEvent &arg, int) override |
| void | SetRenderWindowIcon (Ogre::RenderWindow *rw) |
Private Attributes | |
| Ogre::Root * | m_ogre_root = nullptr |
| Ogre::RenderWindow * | m_render_window = nullptr |
| Ogre::Viewport * | m_viewport = nullptr |
| bool | m_windowed_fix = false |
| Workaround OGRE glitch when switching from fullscreen. More... | |
| std::time_t | m_prev_screenshot_time |
| int | m_prev_screenshot_index = 1 |
| RoR::ForceFeedback | m_force_feedback |
| std::thread::id | m_mainthread_id |
Central setup and event handler for input/windowing/rendering.
Inspired by OgreBites::ApplicationContext.
Definition at line 43 of file AppContext.h.
| void AppContext::ActivateFullscreen | ( | bool | val | ) |
Definition at line 450 of file AppContext.cpp.
|
overrideprivatevirtual |
Definition at line 171 of file AppContext.cpp.
|
overrideprivatevirtual |
Definition at line 169 of file AppContext.cpp.
|
overrideprivatevirtual |
Definition at line 170 of file AppContext.cpp.
| void AppContext::CaptureScreenshot | ( | ) |
Definition at line 403 of file AppContext.cpp.
| Ogre::RenderWindow * AppContext::CreateCustomRenderWindow | ( | std::string const & | name, |
| int | width, | ||
| int | height | ||
| ) |
Definition at line 393 of file AppContext.cpp.
|
inline |
Definition at line 68 of file AppContext.h.
|
inline |
Definition at line 69 of file AppContext.h.
|
inline |
Definition at line 65 of file AppContext.h.
|
inline |
Definition at line 67 of file AppContext.h.
|
inline |
Definition at line 66 of file AppContext.h.
|
overrideprivatevirtual |
Definition at line 138 of file AppContext.cpp.
|
overrideprivatevirtual |
Definition at line 151 of file AppContext.cpp.
|
overrideprivatevirtual |
Definition at line 77 of file AppContext.cpp.
|
overrideprivatevirtual |
Definition at line 97 of file AppContext.cpp.
|
overrideprivatevirtual |
Definition at line 118 of file AppContext.cpp.
|
overrideprivatevirtual |
Definition at line 173 of file AppContext.cpp.
|
private |
Definition at line 204 of file AppContext.cpp.
| bool AppContext::SetUpConfigSkeleton | ( | ) |
Definition at line 550 of file AppContext.cpp.
| bool AppContext::SetUpInput | ( | ) |
Definition at line 63 of file AppContext.cpp.
| void AppContext::SetUpLogging | ( | ) |
Definition at line 516 of file AppContext.cpp.
| void AppContext::SetUpObsoleteConfMarker | ( | ) |
Definition at line 594 of file AppContext.cpp.
| bool AppContext::SetUpProgramPaths | ( | ) |
Definition at line 468 of file AppContext.cpp.
| bool AppContext::SetUpRendering | ( | ) |
Definition at line 223 of file AppContext.cpp.
| bool AppContext::SetUpResourcesDir | ( | ) |
Definition at line 532 of file AppContext.cpp.
| void AppContext::SetUpThreads | ( | ) |
Definition at line 626 of file AppContext.cpp.
|
overrideprivatevirtual |
Definition at line 172 of file AppContext.cpp.
|
overrideprivatevirtual |
Definition at line 191 of file AppContext.cpp.
|
overrideprivatevirtual |
Definition at line 175 of file AppContext.cpp.
|
private |
Definition at line 105 of file AppContext.h.
|
private |
Definition at line 107 of file AppContext.h.
|
private |
Definition at line 97 of file AppContext.h.
|
private |
Definition at line 103 of file AppContext.h.
|
private |
Definition at line 102 of file AppContext.h.
|
private |
Definition at line 98 of file AppContext.h.
|
private |
Definition at line 99 of file AppContext.h.
|
private |
Workaround OGRE glitch when switching from fullscreen.
Definition at line 100 of file AppContext.h.
1.8.17