如何在 Ogre 中获得无窗口应用程序? [英] How to get a windowless application in Ogre?

查看:20
本文介绍了如何在 Ogre 中获得无窗口应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建一个无窗口的 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屋!

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