游戏开发论坛

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

怎么样在程序运行的过程中动态切换到全屏模式?

[复制链接]

1

主题

3

帖子

0

积分

新手上路

Rank: 1

积分
0
发表于 2007-7-12 00:18:00 | 显示全部楼层 |阅读模式
   程序需要在窗体和全屏的模式间切换,好像要重新创建窗体是嘛?有没有好的办法/
   谢谢!

4

主题

44

帖子

44

积分

注册会员

Rank: 2

积分
44
发表于 2007-7-12 09:38:00 | 显示全部楼层

Re: 怎么样在程序运行的过程中动态切换到全屏模式?

virtual void Ogre::RenderWindow::setFullscreen  (  bool  fullScreen,  
  unsigned int  width,  
  unsigned int  height
)  [virtual]

Alter fullscreen mode options.

Note:
Nothing will happen unless the settings here are different from the current settings.
Parameters:
fullScreen  Whether to use fullscreen mode or not.  
width  The new width to use  
height  The new height to use


应该是这个= =
推荐LZ问这种问题前多翻翻文档哦。

1

主题

3

帖子

0

积分

新手上路

Rank: 1

积分
0
 楼主| 发表于 2007-7-14 01:07:00 | 显示全部楼层

Re: 怎么样在程序运行的过程中动态切换到全屏模式?

谢谢...
知道了,呵呵.
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-1-25 20:48

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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