在桌面应用程序中使用OpenGL进行GUI设计有什么缺点? [英] What disadvantages could I have using OpenGL for GUI design in a desktop application?

查看:366
本文介绍了在桌面应用程序中使用OpenGL进行GUI设计有什么缺点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有大量的C / C ++ GUI库,但很少有基于opengl是一个多平台图形库的想法。使用这个OpenGL在便携式应用程序中构建自己的最小GUI有什么大的缺点吗?

There are tons of GUI libraries for C/C++, but very few of them are based on the idea that opengl is a rather multiplatform graphics library. Is there any big disadvantage on using this OpenGL for building my own minimal GUI in a portable application?

Blender 正在这样做,它似乎运行良好。

Blender is doing that, and it seems that it works well for it.

编辑:我的问题的关键不在于使用外部库或使我自己。我主要关心的是使用opengl作为后端的库的使用。 Agar ,CEGUI或Blender的GUI。

The point of my question is not about using an external library or making my own. My main concern is about the use of libraries that use opengl as backend. Agar, CEGUI or Blender's GUI for instance.

感谢。

推荐答案

这是一个古怪的,一个大的物理实验我工作:因为一个OpenGL GUI绕过一些通常的图形抽象层,它可能会打败远程查看应用程序。

Here's an oddball one that bit a large physics experiment I worked on: because an OpenGL GUI bypasses some of the usual graphics abstraction layers, it may defeat remote viewing applications.

在特定实例中,我想我们希望允许通过VNC进行远程移位操作。一切正常,除了一个程序(我们只需要每小时一次,但我们真的需要)使用一个OpenGL接口。我们不得不延迟,直到一个远程版本的OpenGL接口可以准备。

In the particular instance I'm thinking of we wanted to allow remote shift operations over VNC. Everything worked fine except for the one program (which we only needed about once per hour, but we really needed) that used an OpenGL interface. We had to delay until a remote version of the OpenGL interface could be prepared.

这篇关于在桌面应用程序中使用OpenGL进行GUI设计有什么缺点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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