开发者

Haskell: OpenGL, how to prevent immediate window closing

Whenever I clo开发者_运维百科se OpenGL window it makes ghci console from which the app was started to immediately disappear. Is there a way to prevent this behaviour? A sample app.

Thanks.


before calling mainLoop, you can change the actionOnWindowClose mode :

actionOnWindowClose $= MainLoopReturns

mainLoop

Don't know if it works for non-Linux users.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜