• Advertisement
Sign in to follow this  

Porting from DX9 to SlimDX - DeviceLost location

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

Hi,

I'm trying to convert some code which was based on DX9 under .NET1.1 to DX9, .NET4 and SlimDX.

The old code had a number of event handlers set up:


graphics.DeviceLost += new EventHandler( this.InvalidateDeviceObjects );
graphics.DeviceReset += new EventHandler( this.RestoreDeviceObjects );
graphics.Disposing += new EventHandler( this.DeleteDeviceObjects );
graphics.DeviceResizing += new CancelEventHandler( this.EnvironmentResizing );


I note that in SlimDX.Direct3D9, DeviceLost no longer exists. I have a simialr problem with the others.

DeviceLost exists in the SlimDX.Direct3D9.ResultCode namespace, but I don't know if this will be of use.

Cheers,

Share this post


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

  • Advertisement