如何在 MFC 中创建预渲染输入窗口?

发布于 2025-01-04 19:04:49 字数 554 浏览 4 评论 0原文

我修改了 Nehe 的地形教程,以便它使用 Perlin 噪声而不是生成地形加载教程附带的静态 .raw 文件。我想在渲染地形之前指定柏林噪声的参数(频率、幅度、八度音阶数)。事实上,我只是想创建一个接受这 3 个参数然后消失的窗口,我不需要任何其他东西,我在 GLUT 上做我的界面,我只是想让这个特定的应用程序运行这个方式。

我怎样才能做到这一点? Nehe项目需要修改哪些内容?我了解 MFC 没有内置输入框

I have modified Nehe's terrain tutorial so that it generates a terrain using Perlin noise instead of loading the static .raw file that comes with the tutorial. I want to specify the parameters for perlin noise (frequency, amplitude, number of octaves) before rendering the terrain. In fact, I just want to create a window that takes those 3 parameters and then dies, I don't need anything else, I do my interfaces on GLUT, I just want this particular app to run this way.

How can I do that? What should be modified in the Nehe project? I understand MFC doesn't have a built-in input box?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

颜漓半夏 2025-01-11 19:04:49

我不熟悉该教程,但如果您希望看不到输入框但要处理参数,您可以将窗口创建为不可见吗?

I am not familiary with the tutorial but if you want the input box to not be seen but to precess parameters could you just create the window as invisible?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文