tags:

views:

33

answers:

1

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:

Window Top

Essentially I want to remove this from the window.

+1  A: 

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.

ssokolow
Hmm. Thanks. I guess I'll have to ask another question related to undercoating a window.
thyrgle
Cars are undercoated, windows are undecorated (lacking decorations). As for making an undecorated window with GLUT, if you do it, it'll be specific to the platform you're on and I've only seen hacks to do it on X11.
ssokolow