如何在 MFC 中创建预渲染输入窗口?
我修改了 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不熟悉该教程,但如果您希望看不到输入框但要处理参数,您可以将窗口创建为不可见吗?
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?