是否可以在GLUT中使窗口没有顶部? [英] Is it possible to make a window withouth a top in GLUT?

查看:92
本文介绍了是否可以在GLUT中使窗口没有顶部?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当您使用glutCreateWindow在glut中创建一个窗口时,它会将窗口置于顶部吗?如果我想在没有窗口的情况下进行一些OpenGL渲染怎么办?

When you make a window in glut using glutCreateWindow it puts a top to the window? What if I want to do some OpenGL rendering without a window top?

如果没有图片,这可能没有多大意义:

This probably doesn't make much sense without a picture:

基本上我想从窗口中删除它.

Essentially I want to remove this from the window.

推荐答案

您想要的正确术语是未装饰的窗口"或无边界的窗口".不幸的是,我找不到任何可以控制窗口装饰的GLUT调用.

The proper terminology for what you want is "undecorated window" or "borderless window". Unfortunately, I can't find any GLUT calls which let you control window decorations.

我能找到的最接近的东西是glutFullScreen,它在X11平台上通常是通过最大化未装饰的窗口来实现的...但是,如果您取消定位,它会重新装饰它.最大化它.

The closest I was able to find was glutFullScreen which, on X11 platforms, is often implemented by maximizing an undecorated window... but it'll re-decorate it if you un-maximize it.

此论坛主题似乎证实了我的结论

这篇关于是否可以在GLUT中使窗口没有顶部?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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