开发者

SlimDX - Terminate Thread

开发者 https://www.devze.com 2023-04-07 11:57 出处:网络
I created new window and I used SlimDX.Windows.MessagePump.Run on a new threa开发者_如何学JAVAd.

I created new window and I used SlimDX.Windows.MessagePump.Run on a new threa开发者_如何学JAVAd. How can I stop that loop?


If you're passing in a Form as a parameter to MessagePump.Run, you can simply call Close() on that form, which will stop the message pump loop. That's how I did it in my 3DAPI. Look at this source document to see an example of how to do it (near the bottom of the file, in the DirectEngine class, on line 572).

0

精彩评论

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

关注公众号