|
| | ApplicationContextQt (const Ogre::String &appName="Ogre3D") |
| |
| void | addInputListener (InputListener *lis) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
|
| |
| virtual void | addInputListener (NativeWindowType *win, InputListener *lis) |
| | attach input listener More...
|
| |
| void | addInputListener (NativeWindowType *win, InputListener *lis) override |
| | attach input listener More...
|
| |
| NativeWindowPair | createWindow (const Ogre::String &name, uint32_t w=0, uint32_t h=0, Ogre::NameValuePairList miscParams=Ogre::NameValuePairList()) override |
| | Create a new render window. More...
|
| |
| NativeWindowPair | createWindow (QWindow *window, Ogre::NameValuePairList miscParams=Ogre::NameValuePairList()) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
|
| |
| void | injectMainWindow (QWindow *window) |
| | allows overriding the main (first) Window with a pre-created QWindow More...
|
| |
| void | pollEvents () override |
| | process all window events since last call More...
|
| |
| void | removeInputListener (InputListener *lis) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
|
| |
| virtual void | removeInputListener (NativeWindowType *win, InputListener *lis) |
| | detatch input listener More...
|
| |
| void | removeInputListener (NativeWindowType *win, InputListener *lis) override |
| | detatch input listener More...
|
| |
| void | setWindowGrab (bool grab=true) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
|
| |
| void | setWindowGrab (NativeWindowType *win, bool grab) override |
| | When input is grabbed the mouse is confined to the window. More...
|
| |
| virtual void | setWindowGrab (NativeWindowType *win, bool grab=true) |
| | When input is grabbed the mouse is confined to the window. More...
|
| |
| void | shutdown () override |
| | Cleans up and shuts down the context. More...
|
| |
| void | useQtEventLoop (bool enable) |
| | signal that you want to use the Qt event loop More...
|
| |
| | ApplicationContextBase (const Ogre::String &appName="Ogre3D") |
| |
| virtual | ~ApplicationContextBase () |
| |
| void | _fireInputEvent (const Event &event, uint32_t windowID) const |
| | inspect the event and call one of the corresponding functions on the registered InputListener More...
|
| |
| void | addInputListener (InputListener *lis) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
|
| |
| void | closeApp () |
| | This function closes down the application - saves the configuration then shutdowns. More...
|
| |
| void | createDummyScene () |
| | Creates dummy scene to allow rendering GUI in viewport. More...
|
| |
| virtual void | createRoot () |
| | Creates the OGRE root. More...
|
| |
| void | destroyDummyScene () |
| | Destroys dummy scene. More...
|
| |
| void | destroyRTShaderSystem () |
| | Destroy the RT Shader system. More...
|
| |
| void | destroyWindow (const Ogre::String &name) |
| | destroy and erase an NativeWindowPair by name More...
|
| |
| void | enableShaderCache () const |
| | enables the caching of compiled shaders to file More...
|
| |
| bool | frameEnded (const Ogre::FrameEvent &evt) override |
| | Called just after a frame has been rendered. More...
|
| |
| bool | frameRenderingQueued (const Ogre::FrameEvent &evt) override |
| | Called after all render targets have had their rendering commands issued, but before render windows have been asked to flip their buffers over. More...
|
| |
| bool | frameStarted (const Ogre::FrameEvent &evt) override |
| | Called when a frame is about to begin rendering. More...
|
| |
| virtual float | getDisplayDPI () const |
| | get the vertical DPI of the display More...
|
| |
| Ogre::FileSystemLayer & | getFSLayer () |
| | get the FileSystemLayer instace pointing to an application specific directory More...
|
| |
| Ogre::OverlaySystem * | getOverlaySystem () const |
| |
| Ogre::RenderWindow * | getRenderWindow () const |
| | get the main RenderWindow owns the context on OpenGL More...
|
| |
| Ogre::Root * | getRoot () const |
| |
| void | initApp () |
| | This function initializes the render system and resources. More...
|
| |
| bool | initialiseRTShaderSystem () |
| | Initialize the RT Shader system. More...
|
| |
| virtual void | loadResources () |
| | Loads context-wide resource groups. More...
|
| |
| virtual void | locateResources () |
| | Finds context-wide resource groups. More...
|
| |
| virtual bool | oneTimeConfig () |
| | Configures the startup settings for OGRE. More...
|
| |
| virtual void | reconfigure (const Ogre::String &renderer, Ogre::NameValuePairList &options) |
| | Reconfigures the context. More...
|
| |
| void | removeInputListener (InputListener *lis) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
|
| |
| void | setRTSSWriteShadersToDisk (bool write) |
| | make the RTSS write out the generated shaders for caching and debugging More...
|
| |
| virtual void | setup () |
| | Sets up the context after configuration. More...
|
| |
| void | setWindowGrab (bool grab=true) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
|
| |
| virtual void | windowClosed (Ogre::RenderWindow *rw) |
| |
| virtual bool | windowClosing (Ogre::RenderWindow *rw) |
| |
| virtual void | windowFocusChange (Ogre::RenderWindow *rw) |
| |
| virtual void | windowMoved (Ogre::RenderWindow *rw) |
| |
| virtual void | windowResized (Ogre::RenderWindow *rw) |
| |
| virtual | ~FrameListener () |
| |
Specialization for connecting with Qt.
- Set a QBasicTimer on this or call startTimer() to update all associated windows using Root::renderOneFrame.
- Use the QWindow::requestUpdate() slot to refresh a single Window using RenderWindow::update
- QWidget::createWindowContainer and QWidget::windowHandle() provide translation between QWidget and QWindow
Assumes that Ogre Main loop is used for compatibility with other implementations.