• Advertisement
Sign in to follow this  

Init/Shutdown methods

This topic is 1920 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am going through a tutorial and I noticed that all the classes have initialize and shutdown methods on top of the constructor and destructor. I understand the purpose of an init, where you may need to declare but not actually define stuff yet, but the shutdown confuses me as you could just do all that stuff in the deconstructor. Is there any reason to use a shutdown, or even an init for that matter? Or should I be putting that stuff in the constructor/destructor?

I should mention that the "stuff" in question is mostly DirectX stuff.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement