Go-SDL + GUI

xuanbao · · 1691 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>It&#39;s my first post, so sorry if I&#39;m missing the meaning of Reddit. Has anyone tried to make go-sdl work with a GUI package. The goal is to make a map editor. I made some research, but no luck so far.</p> <p>Thanks</p> <hr/>**评论:**<br/><br/>hansrodtang: <pre><p>Do you mean a GUI package for SDL or something like Qt/GTK?</p> <p>Qt, GTK and probably most other GUI frameworks have drawing surfaces for OpenGL you could look into, if that is what you need. </p> <p>You could probably find a way to hook SDL into one of them, but I would recommend looking at their drawing APIs to see if they have what you need instead.</p></pre>renannp: <pre><p>I mean QT/GTK. Making UI for map editor in OpenGL is an overkill I think. I&#39;ll take a look into those and see if they have the surface! What do you mean by &#34;I would recommend taking a look at their drawing APIs&#34;? Thanks!</p></pre>hansrodtang: <pre><p>I meant that Qt/GTK and others provide their own simple interfaces for drawing images and various shapes on their drawing surfaces, you could probably use those instead of SDL.</p></pre>renannp: <pre><p>Hmmm... The Idea is to embed many components that will be used in the game itself into the map editor. The map editor will depend on the game components so we do not have to replicate the map logic (among other things) in the editor. That&#39;s why I don&#39;t want to use their drawing APIs</p></pre>weberc2: <pre><p>Having worked with both Qt and GTK, Qt is easier to work with, but GTK probably has better Go bindings.</p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

1691 次点击  
加入收藏 微博
0 回复
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传