问题描述
限时送ChatGPT账号..我正在尝试创建一个无窗口的 Ogre 应用程序,但该应用程序似乎完全忽略了 RenderWindow::setVisible(false) 方法.有没有办法做到这一点?
I'm trying to create a windowless Ogre application, but it seems that the method RenderWindow::setVisible(false) is completely ignored by the application. Is there a way to accomplish that?
谢谢
托马索
推荐答案
你不应该使用 RenderWindow
而是 RenderTexture
如果你不想打开一个窗口.它的工作原理与 RenderWindow
几乎完全相同,因为它也是从 RenderTarget
派生而来的.除了更改构造函数之外,您只需使用当前参数切换它们应该几乎没有问题.
You should not be using RenderWindow
but RenderTexture
if you don't want to open a window. It works almost exactly the same as RenderWindow
because it is derived from RenderTarget
as well. You should have almost no trouble just switching them around with your current parameters except for changing the constructor.
如果您确实遇到开关问题,请用一些具体代码更新您的问题.
Please update your question with some concrete code if you do run into trouble with the switch.
这篇关于如何在 Ogre 中获得无窗口应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
更多推荐
[db:关键词]
发布评论