I added boost to my solution this evening and surprisingly it went rather smoothly. No major hiccups to speak of tonight. It appears that my C++ solution skills are becoming ninja like! Well maybe not quite to that level, but I certainly am more versed in it than I was just a couple weeks ago.
As part of my inclusion of boost, I modified the ResourceManager so that it uses shared pointers instead of actual pointers. This is going to solve the major flaw I had that really prevented me from handing out the same resource twice without fear of one of the copies being destroyed. Now the smart pointer will handle all the freeing of resources.
The next task I have in mind is to handle logging and exception handling. I don't want to get too far into development without these two in place. I haven't read to much into best practices as far as logging and exception handling in games goes, so I've got some research to do. I'll post links to whatever I find on the subject in my next post which should hopefully cover how I implemented the system.
No comments:
Post a Comment