Class defining a generic OGRE plugin.
More...
#include <OgrePlugin.h>
|
| Plugin () |
|
virtual | ~Plugin () |
|
virtual const String & | getName () const =0 |
| Get the name of the plugin. More...
|
|
virtual void | initialise ()=0 |
| Perform any tasks the plugin needs to perform on full system initialisation. More...
|
|
virtual void | install ()=0 |
| Perform the plugin initial installation sequence. More...
|
|
void | operator delete (void *ptr) |
|
void | operator delete (void *ptr, void *) |
|
void | operator delete (void *ptr, const char *, int, const char *) |
|
void | operator delete[] (void *ptr) |
|
void | operator delete[] (void *ptr, const char *, int, const char *) |
|
void * | operator new (size_t sz, const char *file, int line, const char *func) |
| operator new, with debug line info More...
|
|
void * | operator new (size_t sz) |
|
void * | operator new (size_t sz, void *ptr) |
| placement operator new More...
|
|
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
| array operator new, with debug line info More...
|
|
void * | operator new[] (size_t sz) |
|
virtual void | shutdown ()=0 |
| Perform any tasks the plugin needs to perform when the system is shut down. More...
|
|
virtual void | uninstall ()=0 |
| Perform the final plugin uninstallation sequence. More...
|
|
Class defining a generic OGRE plugin.
- Plugins can be linked statically or dynamically. If they are linked dynamically (ie the plugin is in a DLL or Shared Object file), then you load the plugin by calling the Root::loadPlugin method (or some other mechanism which leads to that call, e.g. plugins.cfg), passing the name of the DLL. OGRE will then call a global init function on that DLL, and it will be expected to register one or more Plugin implementations using Root::installPlugin. The procedure is very similar if you use a static linked plugin, except that you simply instantiate the Plugin implementation yourself and pass it to Root::installPlugin.
- Note
- Lifecycle of a Plugin instance is very important. The Plugin instance must remain valid until the Plugin is uninstalled. Here are the things you must bear in mind:
-
If your plugin is in a DLL:
-
If your plugin is statically linked in your app:
The install and uninstall methods will be called when the plugin is installed or uninstalled. The initialise and shutdown will be called when there is a system initialisation or shutdown, e.g. when Root::initialise or Root::shutdown are called.
◆ Plugin()
◆ ~Plugin()
virtual Ogre::Plugin::~Plugin |
( |
| ) |
|
|
inlinevirtual |
◆ getName()
virtual const String& Ogre::Plugin::getName |
( |
| ) |
const |
|
pure virtual |
◆ initialise()
virtual void Ogre::Plugin::initialise |
( |
| ) |
|
|
pure virtual |
◆ install()
virtual void Ogre::Plugin::install |
( |
| ) |
|
|
pure virtual |
◆ operator delete() [1/3]
◆ operator delete() [2/3]
◆ operator delete() [3/3]
◆ operator delete[]() [1/2]
◆ operator delete[]() [2/2]
◆ operator new() [1/3]
template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new |
( |
size_t |
sz, |
|
|
const char * |
file, |
|
|
int |
line, |
|
|
const char * |
func |
|
) |
| |
|
inlineinherited |
operator new, with debug line info
◆ operator new() [2/3]
◆ operator new() [3/3]
◆ operator new[]() [1/2]
template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new[] |
( |
size_t |
sz, |
|
|
const char * |
file, |
|
|
int |
line, |
|
|
const char * |
func |
|
) |
| |
|
inlineinherited |
array operator new, with debug line info
◆ operator new[]() [2/2]
◆ shutdown()
virtual void Ogre::Plugin::shutdown |
( |
| ) |
|
|
pure virtual |
◆ uninstall()
virtual void Ogre::Plugin::uninstall |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: