OPENGL用户界面编程 [英] OPENGL User Interface Programming

查看:55
本文介绍了OPENGL用户界面编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个图形应用程序来显示数据(不是游戏,而是真正的主力应用程序).它需要跨平台,所以我选择了:

I'm developing a graphical application to present data (not a game but a real workhorse app). It needs to be cross platform, so I have chosen:

  • python
  • openGL(我需要3D,混合,纹理等)
  • pyopengl
  • wx/pywx-窗口,对话框等

最后一个组件-WX-提出了问题.我可以组装一个外观非常漂亮的应用程序(原型看起来很流畅)-但是当我需要与用户互动以提出问题,获取输入信息时,我必须使用WX.在具有混合,平滑运动,纹理等功能的全屏3D应用程序顶部,具有传统对话框,组合键和文本输入的传统UI看起来使应用程序看起来不一致.

The last component - WX - raises the question. I can put together a very nice looking app (the prototypes look slick) - but when I need to interact with the user to ask questions, get input, I have to use WX. It makes the app look inconsistent to have traditional UI with traditional dialogs and combos and text entry on top of a full screen 3D app with blending, smooth motion, textures etc.

有没有人使用OpenGL和python开发GUI?您可以与我分享您使用的工具包和/或技巧吗?我需要连击,文本输入,按钮,单选按钮,选项按钮,树状视图.

Has anyone developed a GUI using OpenGL and python? Can you share with me the toolkits and/or tricks you used? I need combos, text entry, buttons, radios, option buttons, tree view.

有一些工具箱,但是它们要么不完整,要么是旧的并且没有维护. pyUI( http://pyui.sourceforge.net/)就是一个很好的例子-看起来很漂亮,但没有被修饰年.

There are some toolkits out there, but they are either incomplete or old and unmaintained. A great example is pyUI (http://pyui.sourceforge.net/) - looks slick but untouched for years.

推荐答案

这不是答案,更多是恳求:请不要这样做.

This is not an answer, more of a plea: Please don't do that.

您重新实现的窗口小部件将缺少用户会错过的所有功能.您的文本输入框会支持拖放吗?复制粘贴?从右到左的脚本?拖动选择?双击选择?所有这些机制都将遵循您支持的每个平台的本机约定吗?

Your reimplemented widgets will lack all sorts of functionality that users will miss. Will your text-entry boxes support drag'n'drop? Copy/paste? Right-to-left scripts? Drag-select? Double-click-select? Will all these mechanisms follow the native conventions of each platform you support?

使用Wx,您的小部件可能看起来与应用程序不一致,但是至少它们看起来与操作系统保持一致,这同样重要.而且更重要的是,他们将按照用户的期望去做.

With Wx your widgets might look inconsistant with the app, but at least they'll look consistant with the OS which is just as important. And more importantly, they'll do what users expect.

(edit)三个帖子,-3分?拧死这个因果报应的人.原始海报:我已经在OpenGL中实现了一组基本的小部件(用于游戏UI),这是工作的无尽噩梦.

(edit) Three posts, and -3 points? Screw this den of karma-whores. Original poster: I have implemented a basic set of widgets in OpenGL (for a game UI) and it was an endless nightmare of a job.

这篇关于OPENGL用户界面编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆