Jump to content

View more

Image of the Day

The night is still, but the invasion brings chaos. #screenshotsaturday #hanako #indiegame #gameart #ue4 #samurai https://t.co/cgILXuokoS
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Porting from DX9 to SlimDX - DeviceLost location

4: Adsense

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   

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,




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.