|
RigsofRods
Soft-body Physics Simulation
|
Go to the documentation of this file.
42 ImGuiIO& io = ImGui::GetIO();
45 io.IniFilename =
nullptr;
58 io.KeyMap[ImGuiKey_Backspace] = OIS::KC_BACK;
61 io.KeyMap[ImGuiKey_A] = OIS::KC_A;
62 io.KeyMap[ImGuiKey_C] = OIS::KC_C;
63 io.KeyMap[ImGuiKey_V] = OIS::KC_V;
64 io.KeyMap[ImGuiKey_X] = OIS::KC_X;
65 io.KeyMap[ImGuiKey_Y] = OIS::KC_Y;
66 io.KeyMap[ImGuiKey_Z] = OIS::KC_Z;
80 m_imgui_overlay->addFont(
"rigsofrods/fonts/Roboto-Medium",
84 m_imgui_overlay->setZOrder(300);
85 m_imgui_overlay->initialise();
86 m_imgui_overlay->show();
92 ImGuiIO& io = ImGui::GetIO();
94 io.MousePos.x = arg.state.X.abs;
95 io.MousePos.y = arg.state.Y.abs;
96 io.MouseWheel = Ogre::Math::Clamp((
float)arg.state.Z.rel, -1/3.f, 1/3.f);
101 ImGuiIO& io = ImGui::GetIO();
102 if (
id >= 0 &&
id < 5)
104 io.MouseDown[id] = down;
110 ImGuiIO& io = ImGui::GetIO();
111 io.MouseDown[0] =
false;
112 io.MouseDown[1] =
false;
113 io.MouseDown[2] =
false;
114 io.MouseDown[3] =
false;
115 io.MouseDown[4] =
false;
120 ImGuiIO& io = ImGui::GetIO();
121 io.KeysDown[arg.key] =
true;
125 io.AddInputCharacter((
unsigned short)arg.text);
131 ImGuiIO& io = ImGui::GetIO();
132 io.KeysDown[arg.key] =
false;
136 const Ogre::String& invocation,
bool& skipThisInvocation)
139 if(queueGroupId == Ogre::RENDER_QUEUE_OVERLAY)
141 Ogre::Viewport* vp = Ogre::Root::getSingletonPtr()->getRenderSystem()->_getViewport();
144 Ogre::SceneManager* sceneMgr = vp->getCamera()->getSceneManager();
145 if (vp->getOverlaysEnabled() && sceneMgr->_getCurrentRenderStage() != Ogre::SceneManager::IRS_RENDER_TO_TEXTURE)
154 m_imgui_overlay->_findVisibleObjects(vp->getCamera(), sceneMgr->getRenderQueue(), vp);
enum Script2Game::inputEvents KC_NUMPAD1
void SetMouseButtonState(OIS::MouseButtonID id, bool down)
enum Script2Game::inputEvents KC_HOME
MIT License Copyright(c) 2000-2013 Torus Knot Software Ltd Permission is hereby granted
enum Script2Game::inputEvents KC_NUMPAD7
The MIT free of to any person obtaining a copy of this software and associated documentation to deal in the Software without restriction
MIT License free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to and or sell copies of the and to permit persons to whom the Software is furnished to do subject to the following WITHOUT WARRANTY OF ANY EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY
MIT License free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to and or sell copies of the and to permit persons to whom the Software is furnished to do subject to the following WITHOUT WARRANTY OF ANY EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR ARISING FROM
enum Script2Game::inputEvents KC_NUMPAD4
enum Script2Game::inputEvents KC_PGDOWN
enum Script2Game::inputEvents KC_DELETE
enum Script2Game::inputEvents KC_NUMPAD9
The MIT free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to copy
enum Script2Game::inputEvents KC_PGUP
AppContext * GetAppContext()
MIT License free of to any person obtaining a copy of this software and associated documentation to deal in the Software without restriction
The MIT free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to and or sell copies of the and to permit persons to whom the Software is furnished to do subject to the following WITHOUT WARRANTY OF ANY EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF CONTRACT
MIT License free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to and or sell copies of the and to permit persons to whom the Software is furnished to do subject to the following WITHOUT WARRANTY OF ANY KIND
enum Script2Game::inputEvents KC_RETURN
MIT License free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to use
void InjectKeyReleased(const OIS::KeyEvent &arg)
The MIT free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to merge
MIT License free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to and or sell copies of the and to permit persons to whom the Software is furnished to do subject to the following WITHOUT WARRANTY OF ANY EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY
enum Script2Game::inputEvents KC_RIGHT
System integration layer; inspired by OgreBites::ApplicationContext.
enum Script2Game::inputEvents KC_ESCAPE
The MIT free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to modify
Ogre::Viewport * GetViewport()
MIT License free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to and or sell copies of the Software
enum Script2Game::inputEvents KC_SLASH
MIT License free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to copy
The MIT free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to and or sell copies of the and to permit persons to whom the Software is furnished to do subject to the following WITHOUT WARRANTY OF ANY EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY
void ResetAllMouseButtons()
The MIT free of to any person obtaining a copy of this software and associated documentation files(the "Software")
enum Script2Game::inputEvents KC_NUMPAD0
MIT License free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to and or sell copies of the and to permit persons to whom the Software is furnished to do subject to the following WITHOUT WARRANTY OF ANY EXPRESS OR IMPLIED
The MIT free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to and or sell copies of the and to permit persons to whom the Software is furnished to do subject to the following WITHOUT WARRANTY OF ANY KIND
void InjectMouseMoved(const OIS::MouseEvent &arg)
enum Script2Game::inputEvents KC_NUMPAD6
enum Script2Game::inputEvents KC_NUMPAD5
enum Script2Game::inputEvents KC_TAB
MIT License free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to publish
The MIT free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to sublicense
MIT License free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to sublicense
enum Script2Game::inputEvents KC_END
MIT License free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to modify
MIT License free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to merge
void InjectKeyPressed(const OIS::KeyEvent &arg)
enum Script2Game::inputEvents KC_DOWN
The MIT free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to and or sell copies of the and to permit persons to whom the Software is furnished to do subject to the following WITHOUT WARRANTY OF ANY EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR OTHERWISE
MIT License free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to and or sell copies of the and to permit persons to whom the Software is furnished to do subject to the following WITHOUT WARRANTY OF ANY EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR OTHERWISE
The MIT free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to and or sell copies of the and to permit persons to whom the Software is furnished to do subject to the following WITHOUT WARRANTY OF ANY EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY
MIT License free of charge
The MIT free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to and or sell copies of the and to permit persons to whom the Software is furnished to do subject to the following WITHOUT WARRANTY OF ANY EXPRESS OR IMPLIED
The MIT free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to publish
The MIT free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to use
The MIT License(MIT) Copyright(c) 2014-2019 Omar Cornut Permission is hereby granted
enum Script2Game::inputEvents KC_NUMPAD8
virtual void renderQueueStarted(Ogre::uint8 queueGroupId, const Ogre::String &invocation, bool &skipThisInvocation) override
MIT License free of to any person obtaining a copy of this software and associated documentation files(the "Software")
The MIT free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to and or sell copies of the Software
MIT License free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to and or sell copies of the and to permit persons to whom the Software is furnished to do so
MIT License free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to and or sell copies of the and to permit persons to whom the Software is furnished to do subject to the following conditions
The MIT free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to and or sell copies of the and to permit persons to whom the Software is furnished to do subject to the following WITHOUT WARRANTY OF ANY EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR ARISING FROM
enum Script2Game::inputEvents KC_UP
The MIT free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to and or sell copies of the and to permit persons to whom the Software is furnished to do subject to the following conditions
MIT License free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to and or sell copies of the and to permit persons to whom the Software is furnished to do subject to the following WITHOUT WARRANTY OF ANY EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF CONTRACT
enum Script2Game::inputEvents KC_LEFT
enum Script2Game::inputEvents KC_NUMPAD3
The MIT free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to and or sell copies of the and to permit persons to whom the Software is furnished to do subject to the following WITHOUT WARRANTY OF ANY EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM
enum Script2Game::inputEvents KC_NUMPAD2
static const ResourcePack FONTS
The MIT free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to distribute
The MIT free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to and or sell copies of the and to permit persons to whom the Software is furnished to do so
MIT License free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to and or sell copies of the and to permit persons to whom the Software is furnished to do subject to the following WITHOUT WARRANTY OF ANY EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM
MIT License free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to distribute