Loosley coupled Managers, Root

galaktor

06-11-2008 09:21:39

Hi

I think it would be great if mogre would offer interfaces to the main objects (Root, Managers, Camera, Light, Entity etc.), if not all objects in ogre. That would make it a lot easier to implement OOP paradigms like dependency injection.

It shouldn't be much work, even though it possibly would take some time to do. In Visual Studio, extracting an interface for a class is only a matter of seconds, no one would be forced to use the interfaces and the benefits would be massive. Ogre could integrate much better into more complex architectures.

Bekas

04-12-2008 19:08:33

How do you intend to make other classes that implement these interfaces ?