开发者

DrawEventArgs GraphicsDevice Missing

开发者 https://www.devze.com 2023-04-03 03:35 出处:网络
I have an application written开发者_StackOverflow社区 in c#, .NET 4 & silverlight 5 & XNA Frameworks, in VS 2010/Windows7pro.

I have an application written开发者_StackOverflow社区 in c#, .NET 4 & silverlight 5 & XNA Frameworks, in VS 2010/Windows7pro. When trying to use the System.Windows.Control.DrawEventArgs class to draw a scene (scene.Draw( e.GraphicsDevice)) there should be an GraphicsDevice object available but there is not.

Have I missed something?


You can find the answer here which solved the same problem of mine.


from David Catuhe's blog

The device is no longer handled by the DrawEventArgs class. It is now available on GraphicsDeviceManager.Current.GraphicsDevice.

0

精彩评论

暂无评论...
验证码 换一张
取 消