|
Frapper
1.0a
|
Static class containing OGRE utility functions. More...
#include <OgreManager.h>
Static Public Member Functions | |
| static Ogre::RenderWindow * | createRenderWindow (const Ogre::String &name="OGRE Render Window", int width=800, int height=600, const Ogre::NameValuePairList *miscParams=0) |
| Creates a render window. | |
| static void | execConfigDialog () |
| Executes the OGRE configuration dialog. | |
| static void | initialize (const Ogre::String &pluginFileName="config/plugins.cfg", const Ogre::String &configFileName="config/ogre.cfg", const Ogre::String &resourceFileName="config/resources.cfg", const Ogre::String &logFileName="logs/ogre.log") |
| Initializes private static data of the OgreManager. | |
| static void | finalize () |
| Frees all resources that were used by the OgreManager. | |
| static Ogre::Root * | getRoot () |
| Returns the OGRE root object. | |
| static Ogre::SceneManager * | getSceneManager () |
| Returns the OGRE scene manager. | |
| static Ogre::SceneNode * | createSceneNode (const QString &name) |
| Creates a new scene node with the given name using the default scene manager. | |
| static void | deleteSceneNode (Ogre::SceneNode *sceneNode) |
| Deletes a specific scene node with the given name using the default scene manager. | |
| static Ogre::SceneNode * | relocateSceneNode (Ogre::SceneNode *sceneNode, Ogre::SceneNode *newParent) |
| Detach a given SceneNode from its current parent and attach to another SceneNode. | |
| static void | deleteAttachedObjects (Ogre::SceneNode *sceneNode) |
| Deletes all attached objects of a scene node with the given name using the default scene manager. | |
| static bool | isFullscreen () |
| Returns whether fullscreen mode is currently enabled. | |
| static void | setFullscreen (bool fullscreen) |
| Set Fullscreen. | |
| static Ogre::String | getRenderSystemName () |
| Returns the name of the current render system. | |
| static Ogre::ColourValue | convertColor (const QColor &color) |
| Returns the given Qt color value as an OGRE color value. | |
| static void | unloadResource (Ogre::ResourceManager *resMgr, const std::string &resourceName) |
| Unload resource using given resource manager. | |
| static void | loadResource (Ogre::ResourceManager *resMgr, const std::string &resourceName, const std::string &resourceGroup) |
| Load resource using given resource manager. | |
| static void | unloadMaterials (const std::string &filename) |
| Unload materials in material listed file. | |
| static void | unloadVertexPrograms (const std::string &filename) |
| Unload vertex programs in file. | |
| static void | unloadFragmentPrograms (const std::string &filename) |
| Unload fragment programs file. | |
| static void | reloadMaterial (const std::string &materialName, const std::string &groupName, const std::string &filename, bool parseMaterialScript) |
| Reload material. | |
Static Private Attributes | |
| static Ogre::Root * | s_root = 0 |
| The OGRE root object. | |
| static Ogre::SceneManager * | s_sceneManager = 0 |
| The OGRE scene manager. | |
| static bool | s_initialized = false |
| Flag that states whether the OgreManager has been initialized. | |
| static bool | s_fullscreen = false |
| Flag that states whether next created render window should be fullscreen or not. | |
| static Ogre::String | s_rendersystemName = "UNKNOWN" |
| The Name of the currently used render system. | |
Static class containing OGRE utility functions.
|
static |
Creates a render window.
Public Static Functions.
| name | The name to use for the render window. |
| width | The width to use for the render window. |
| height | The height to use for the render window. |
| miscParams | Additional parameters to pass on to the render window. |
Create a render window.
| fullscreen | Fullscreen or not. |
| width | Height of the render window. |
| height | Width of the render window. |
|
static |
Executes the OGRE configuration dialog.
|
static |
Initializes private static data of the OgreManager.
|
static |
Frees all resources that were used by the OgreManager.
|
static |
Returns the OGRE root object.
|
static |
Returns the OGRE scene manager.
|
static |
Creates a new scene node with the given name using the default scene manager.
Creates a new scene sceneNode with the given name using the default scene manager.
| name | The name for the scene node. |
A suffix ("SceneNode") will be added to the name of the scene sceneNode.
| name | The name for the scene sceneNode. |
|
static |
Deletes a specific scene node with the given name using the default scene manager.
Deletes a specific scene node with the given name using the default scene manager. Use in conjunction with OgreManager::createSceneNode().
| sceneNode | The scene node to be deleted. |
|
static |
Detach a given SceneNode from its current parent and attach to another SceneNode.
| sceneNode | The SceneNode to be relocated. |
| newParent | Where the SceneNode will be attached |
| sceneNode | The SceneNode to be relocated. |
| newParent | Where the SceneNode will be attached |
|
static |
Deletes all attached objects of a scene node with the given name using the default scene manager.
| sceneNode | The scene node with attached objects to be deleted |
|
static |
Returns whether fullscreen mode is currently enabled.
|
static |
Set Fullscreen.
| fullsreen | Fullscreen oder not. |
|
static |
Returns the name of the current render system.
|
static |
Returns the given Qt color value as an OGRE color value.
| color | The Qt color value to convert. |
|
static |
Unload resource using given resource manager.
| resMgr | The reource manager. |
| resourceName | The resource to unload. |
| resMgr | The resource manager. |
| resourceName | The resource to unload. |
|
static |
Load resource using given resource manager.
| resMgr | The reource manager. |
| resourceName | The resource to load. |
| resourceGroup | The resource group. |
|
static |
Unload materials in material listed file.
| filename | The material filename. |
|
static |
Unload vertex programs in file.
| filename | The vertex program filename. |
|
static |
Unload fragment programs file.
| filename | The fragment program filename. |
|
static |
Reload material.
| materialName | The material's name. |
| groupName | The group name. |
| filename | The filename. |
| parseMaterialScript | Parse the material script or not. |
|
staticprivate |
The OGRE root object.
Private Static Data.
|
staticprivate |
The OGRE scene manager.
|
staticprivate |
Flag that states whether the OgreManager has been initialized.
|
staticprivate |
Flag that states whether next created render window should be fullscreen or not.
|
staticprivate |
The Name of the currently used render system.
1.8.2