开发者

DrawEventArgs GraphicsDevice Missing

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜