Central setup and event handler for input/windowing/rendering.
More...
#include <AppContext.h>
|
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) |
|
Central setup and event handler for input/windowing/rendering.
Inspired by OgreBites::ApplicationContext.
Definition at line 43 of file AppContext.h.
◆ ActivateFullscreen()
void AppContext::ActivateFullscreen |
( |
bool |
val | ) |
|
◆ axisMoved()
bool AppContext::axisMoved |
( |
const OIS::JoyStickEvent & |
arg, |
|
|
int |
axis |
|
) |
| |
|
overrideprivatevirtual |
◆ buttonPressed()
bool AppContext::buttonPressed |
( |
const OIS::JoyStickEvent & |
arg, |
|
|
int |
button |
|
) |
| |
|
overrideprivatevirtual |
◆ buttonReleased()
bool AppContext::buttonReleased |
( |
const OIS::JoyStickEvent & |
arg, |
|
|
int |
button |
|
) |
| |
|
overrideprivatevirtual |
◆ CaptureScreenshot()
void AppContext::CaptureScreenshot |
( |
| ) |
|
◆ CreateCustomRenderWindow()
Ogre::RenderWindow * AppContext::CreateCustomRenderWindow |
( |
std::string const & |
name, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
◆ GetForceFeedback()
◆ GetMainThreadID()
std::thread::id RoR::AppContext::GetMainThreadID |
( |
| ) |
|
|
inline |
◆ GetOgreRoot()
Ogre::Root* RoR::AppContext::GetOgreRoot |
( |
| ) |
|
|
inline |
◆ GetRenderWindow()
Ogre::RenderWindow* RoR::AppContext::GetRenderWindow |
( |
| ) |
|
|
inline |
◆ GetViewport()
Ogre::Viewport* RoR::AppContext::GetViewport |
( |
| ) |
|
|
inline |
◆ keyPressed()
bool AppContext::keyPressed |
( |
const OIS::KeyEvent & |
arg | ) |
|
|
overrideprivatevirtual |
◆ keyReleased()
bool AppContext::keyReleased |
( |
const OIS::KeyEvent & |
arg | ) |
|
|
overrideprivatevirtual |
◆ mouseMoved()
bool AppContext::mouseMoved |
( |
const OIS::MouseEvent & |
arg | ) |
|
|
overrideprivatevirtual |
◆ mousePressed()
bool AppContext::mousePressed |
( |
const OIS::MouseEvent & |
arg, |
|
|
OIS::MouseButtonID |
id |
|
) |
| |
|
overrideprivatevirtual |
◆ mouseReleased()
bool AppContext::mouseReleased |
( |
const OIS::MouseEvent & |
arg, |
|
|
OIS::MouseButtonID |
id |
|
) |
| |
|
overrideprivatevirtual |
◆ povMoved()
bool AppContext::povMoved |
( |
const OIS::JoyStickEvent & |
arg, |
|
|
int |
|
|
) |
| |
|
overrideprivatevirtual |
◆ SetRenderWindowIcon()
void AppContext::SetRenderWindowIcon |
( |
Ogre::RenderWindow * |
rw | ) |
|
|
private |
◆ SetUpConfigSkeleton()
bool AppContext::SetUpConfigSkeleton |
( |
| ) |
|
◆ SetUpInput()
bool AppContext::SetUpInput |
( |
| ) |
|
◆ SetUpLogging()
void AppContext::SetUpLogging |
( |
| ) |
|
◆ SetUpObsoleteConfMarker()
void AppContext::SetUpObsoleteConfMarker |
( |
| ) |
|
◆ SetUpProgramPaths()
bool AppContext::SetUpProgramPaths |
( |
| ) |
|
◆ SetUpRendering()
bool AppContext::SetUpRendering |
( |
| ) |
|
◆ SetUpResourcesDir()
bool AppContext::SetUpResourcesDir |
( |
| ) |
|
◆ SetUpThreads()
void AppContext::SetUpThreads |
( |
| ) |
|
◆ sliderMoved()
bool AppContext::sliderMoved |
( |
const OIS::JoyStickEvent & |
arg, |
|
|
int |
|
|
) |
| |
|
overrideprivatevirtual |
◆ windowFocusChange()
void AppContext::windowFocusChange |
( |
Ogre::RenderWindow * |
rw | ) |
|
|
overrideprivatevirtual |
◆ windowResized()
void AppContext::windowResized |
( |
Ogre::RenderWindow * |
rw | ) |
|
|
overrideprivatevirtual |
◆ m_force_feedback
◆ m_mainthread_id
std::thread::id RoR::AppContext::m_mainthread_id |
|
private |
◆ m_ogre_root
Ogre::Root* RoR::AppContext::m_ogre_root = nullptr |
|
private |
◆ m_prev_screenshot_index
int RoR::AppContext::m_prev_screenshot_index = 1 |
|
private |
◆ m_prev_screenshot_time
std::time_t RoR::AppContext::m_prev_screenshot_time |
|
private |
◆ m_render_window
Ogre::RenderWindow* RoR::AppContext::m_render_window = nullptr |
|
private |
◆ m_viewport
Ogre::Viewport* RoR::AppContext::m_viewport = nullptr |
|
private |
◆ m_windowed_fix
bool RoR::AppContext::m_windowed_fix = false |
|
private |
Workaround OGRE glitch when switching from fullscreen.
Definition at line 100 of file AppContext.h.
The documentation for this class was generated from the following files: