如何在 Ogre 中获得无窗口应用程序?

编程入门 行业动态 更新时间:2024-10-26 16:29:28
本文介绍了如何在 Ogre 中获得无窗口应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送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:关键词]

本文发布于:2023-04-25 23:27:55,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1125420.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   窗口   如何在   Ogre

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!