Jump to content

  • Log In with Google      Sign In   
  • Create Account

Porting from DX9 to SlimDX - DeviceLost location


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
No replies to this topic

#1 CdrTomalak   Members   -  Reputation: 272

Like
0Likes
Like

Posted 02 June 2012 - 09:05 AM

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,

Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS