<p>It's my first post, so sorry if I'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'll take a look into those and see if they have the surface! What do you mean by "I would recommend taking a look at their drawing APIs"?
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's why I don'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
0 回复
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传