• Advertisement

Archived

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

where to store IDirect3DDevice8?

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