开发者

Is it possible to make a window withouth a top in GLUT?

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:

Is it possible to make a window withouth a top in GLUT?

Essentially I want to remove this from the window.


Use GLUT_BORDERLESS and GLUT_CAPTIONLESS as additional parameters to the glutInitDisplayMode() to get rid of window border and caption as follow:

glutInitDisplayMode(GLUT_RGBA|GLUT_DOUBLE|GLUT_DEPTH|GLUT_BORDERLESS|GLUT_CAPTIONLESS);

At least it works pretty good with freeglut 2.8.1 on Windows.

Is it possible to make a window withouth a top in 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.

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.

This forum thread seems to confirm my conclusions.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜