Monday, August 31, 2009

Minor progress

Finally I got a console working, and got rid of most memory leaks when shuting down the application. It wasn't easy though, due to some difficulties with the so called "Overlay" class in Ogre, as discussed in this thread. When manually creating nested OverlayElements in Ogre and adding them to the SceneManager through a SceneNode, the destruction of the elements later can produce hard to find bugs, and (in my case) crashing when destroying Ogre Root. It took a while to figure out, but now I got a simple yet functional console:



And everything written in the console gets outputted to a log file in the .exe directory.
I also added some other stuff but it's nothing visible on screen, so I'll post about those later.

No comments:

Post a Comment