游戏开发论坛

 找回密码
 立即注册
搜索
查看: 3105|回复: 2

OGRE怎么去掉左下方和右下方自带显示图片

[复制链接]

3

主题

3

帖子

5

积分

新手上路

Rank: 1

积分
5
发表于 2009-11-4 17:04:00 | 显示全部楼层 |阅读模式

C:\Documents and Settings\Administrator\桌面\截图.jpg
左下方一个现实FPS的,右下方一个显示OGRE图标的,不知道在源码的哪,
请各位高手帮忙,怎么去掉这两个显示的,还有就是一开始运行OGRE程序
都会出现一个OGRE配置选项窗口,怎么去掉???谢谢了

6

主题

25

帖子

25

积分

注册会员

Rank: 2

积分
25
发表于 2009-11-9 14:58:00 | 显示全部楼层

Re:OGRE怎么去掉左下方和右下方自带显示图片

ExampleApplication.h 中 ExampleApplication类:

去掉配置窗口:
   virtual bool configure(void)
    {
        // Show the configuration dialog and initialise the system
        // You can skip this and use root.restoreConfig() to load configuration
        // settings if you were sure there are valid ones saved in ogre.cfg
        if(mRoot->showConfigDialog())
        {
            // If returned true, user clicked OK so initialise
            // Here we choose to let the system create a default rendering window by passing 'true'
            mWindow = mRoot->initialise(true);
            return true;
        }
        else
        {
            return false;
        }
    }
将此函数中showConfigDialog函数调用注释掉即可。


去掉Ogre中调试信息窗口:
   virtual void createFrameListener(void)
    {
        mFrameListener= new ExampleFrameListener(mWindow, mCamera);
        mFrameListener->showDebugOverlay(true);
        mRoot->addFrameListener(mFrameListener);
    }

这个函数内将 showDebugOverlay 函数注释掉即可。

回答完毕,继续干活。

3

主题

13

帖子

17

积分

新手上路

Rank: 1

积分
17
发表于 2009-11-9 19:33:00 | 显示全部楼层

Re: OGRE怎么去掉左下方和右下方自带显示图片


mFrameListener->showDebugOverlay(false);
也可以
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2025-6-18 05:42

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表