Hooking the engine from custom Plugins

Problems building or running the engine, queries about how to use features etc.
Post Reply
User avatar
Posts: 12
Joined: Tue Feb 14, 2012 2:06 pm

Hooking the engine from custom Plugins

Post by mattmatt » Fri Mar 02, 2012 12:28 pm


We are developping an application that will use several external plugins.
We had a look on the Ogre Guide to create Plugins: http://www.ogre3d.org/tikiwiki/Creating ... e=Cookbook

The inheritance of the class Plugin allows plugins to hook some specific "points" of the application workflow:
  • install
  • initialise
  • shutdown
  • uninstall

The things is that we need to hook other very specific points of the engine or rendering process.
Is there in OGRE an already available mechanism to do so?

Or do we need to code a kind of ''Observer Pattern'' that will call in a specific place of the engine each registered plugin to this specific hook?

Thanx in advance for your help
0 x

User avatar
Platinum Sponsor
Platinum Sponsor
Posts: 1186
Joined: Sat Apr 17, 2004 2:49 am

Re: Hooking the engine from custom Plugins

Post by johnhpus » Sat Mar 03, 2012 9:49 am

There are different types of plugins, and each type has an interface class that provides different virtual functions that you can override. There are plugins to load resources, plugins to manage scenes, plugins for render systems, plugins for platform support...
0 x

Post Reply