Jump to content
  • Advertisement
Sign in to follow this  
CdrTomalak

Porting from DX9 to SlimDX - DeviceLost location

This topic is 2268 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
×

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!