OGRE #include tree

10 April, 2012
OGRE include tree

My include graph generator script being run on ogre.h from the OGRE rendering engine. The graph is far too complicated to read, but idly scrolling around is quite mesmerising. These files are ALL included the moment you type #include <OGRE/Ogre.h>.

This isn’t really a criticism of the design of OGRE (which is actually not all that bad), just a general interest thing. Of course you can avoid including quite so many files by only including the specific classes you need. With some libraries, that doesn’t help you much.

(Full resolution image here)