|
发表于 2023-2-27 18:43:58
|
显示全部楼层
本楼为最佳答案
本帖最后由 dolly_yos2 于 2023-2-27 18:48 编辑
从 cocos2d 的文档看,cocos.director.director.init 支持的参数是 pyglet.window.Window 的超集
pyglet.window.Window 有一个 style 参数,可以设置为 pyglet.window.Window.WINDOW_STYLE_BORDERLESS,可能能建议窗口管理器将窗口装饰为无边框模式
https://los-cocos.github.io/cocos-site/doc/api/cocos.director.html#initializing
https://los-cocos.github.io/cocos-site/doc/api/cocos.director.html#cocos.director.Director.init
https://pyglet.readthedocs.io/en/latest/modules/window.html?highlight=ScreenMode#pyglet.window.Window
https://pyglet.readthedocs.io/en/latest/modules/window.html?highlight=ScreenMode#pyglet.window.Window.WINDOW_STYLE_BORDERLESS |
|