为什么GLUT这么差? [英] Why is GLUT so bad?

查看:139
本文介绍了为什么GLUT这么差?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到很多关于GLUT的错误评论,虽然openFrameworks使用它。

I've seen a lot of bad comments about GLUT, although openFrameworks uses it.

Cinder开发人员表示他们想要离GLUT远可能的...

Cinder developers have stated that they want to stay as far away from GLUT as possible...

这是什么坏事?

推荐答案

您不应该使用实际 GLUT。它自2001年以来没有更新。 FreeGLUT另一方面是很好;它是100%向后兼容原始和仍然半活跃的发展。你可以假设在这个答案中进一步引用GLUT表示FreeGLUT。

You should never use the actual GLUT. It hasn't been updated since 2001 or so. FreeGLUT on the other hand is just fine; it is 100% backwards compatible with the original and is still in semi-active development. You may assume that any further references in this answer to "GLUT" to mean "FreeGLUT".

为什么Cinder开发人员不使用它是显而易见的:重写它做什么。他们正在向GLUT写一个替代

Why the Cinder developers don't use it is obvious: because they're rewriting what it does. They're writing an alternative to GLUT.

GLUT是为了让应用程序正常运行而设计的。它的目的是使它容易和明显在哪里放你的代码,以使一切工作。

GLUT is designed around getting an application up and running. It's designed to make it easy and obvious where to put your code in order to make everything work. That's what it is ultimately for: to make it easy for you to throw stuff onto the screen.

但是,在屏幕上投放东西通常不是真正的应用程序想做。这是他们做的一部分,当然。但他们做的比这更多。而GLUT的做事方式往往违背了正在写一个严肃的应用程序想做的事情。

But throwing stuff on the screen is generally not what actual applications want to do. It's part of what they do, certainly. But they do much more than that. And the GLUT way of doing things often works counter to what someone writing a serious application wants to do.

这是关于使用正确的工作的正确工作。 GLUT非常适合组合一个简单,自足的视觉效果。这是伟大的,如果你想要一些基本输入(鼠标移动,按键)。但是如果你有严格的时间需求,或许多真正的应用程序需要做的其他事情,那么GLUT将是一个阻碍比帮助。

It's all about using the right tool for the right job. GLUT is great for putting together a simple, self-contained visual effect. It's great if you want some basic input (mouse movements, key presses). But if you have strict timing needs, or many of the other things that a real application needs to do, then GLUT is going to be more of a hindrance than a help.

没有理由你不能在你的口袋里有GLUT的简单的效果测试等等,然后再提出像Cinder或任何东西,有其他需要的东西。

There is no reason why you can't have GLUT in your pocket for simple tests of effects and so forth, and then later bring out something like Cinder or whatever for something that has other needs.

这篇关于为什么GLUT这么差?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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