Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

billybob

where to store IDirect3DDevice8?

This topic is 5801 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

as of right now i have a class CEngine, which manages viewports and the direct3d device object. the bad part is that i''m sending the device to all the functions that use it, which doesn''t seem right. but if i make it global, CEngine doesn''t protect it from device lost, etc. where should i be storing the device pointer?

Share this post


Link to post
Share on other sites
Advertisement
I don''t know anything about how to recover from lost devices but would it help if you made that IDirect3DDevice8 a singleton?? Sorry if this was a totally stupid suggestion..

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!