where to store IDirect3DDevice8?
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?
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..
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement