where to store IDirect3DDevice8?

Started by
1 comment, last by billybob 21 years, 4 months ago
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?
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..
- Just another sad bastard
make it a global.

This topic is closed to new replies.

Advertisement