Linux/Unix 中的 Haskell 图形编程
我对用 Haskell 制作游戏感兴趣,并且正在寻找图形库。我发现了一个名为 HUGS 图形库的库,但令我沮丧的是它只能在 Win32 上运行。我想知道是否有用于 Linux/Unix Haskell 编程的图形库,或者我运气不好。感谢您的阅读。
I am interested in making a game in Haskell and I am looking for a graphics library. I found one called the HUGS Graphics Library but much to my dismay it only runs on Win32. I was wondering if there was a graphics library for Linux/Unix Haskell programming or am I out of luck. Thank you for reading.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您了解黑客吗? hackage 上托管着许多与图形相关的库。低级 OpenGL 绑定(openglraw、glut、hgl、glfw)、高级专用 GL 库(例如:gloss)、2D 库(cairo、gtk、gd)等。对于 2D,我建议您查看此相关问题。
Do you know about hackage? Hosted on hackage are lots of graphics-related libraries. Low level OpenGL bindings (openglraw, glut, hgl, glfw), higher level special-purpose GL libraries (ex: gloss), 2D libraries (cairo, gtk, gd), and more. For 2D I suggest you see this related question.
Raincat 是一款用 Haskell 编写的简单益智游戏,演示了图形库的使用和一些简单的技术。尝试查找一些 Haskell SDL 和 OpenGL 教程来帮助您理解代码。我很期待玩你的游戏。
问候,
http://hackage.haskell.org/package/Raincat
Raincat is a simple puzzle game written in Haskell that demonstrates graphics library usage and some strait forward techniques. Try looking up some Haskell SDL and OpenGL tutorials to help you in understanding the code. I am looking forward to playing your game.
Regards,
http://hackage.haskell.org/package/Raincat