is it possible to remove the title bar of an OpenGL window?

i find that all the openGL windows created using
has a title bar.

but i don t want to show the maximizing, minimiziong and close buttons on the title bar. Is it possible to remove that?

Well, I don’t think you can do that with glut. (Unless you go fullscreen) You’d need windowing system dependent code to do that.

If your target platform is windows you can do the trick with following code snippets used right before glutMainLoop():

  	HWND hThisWnd = FindWindow( "GLUT", "your window name" );
	if( hThisWnd )
		LONG lStyle = GetWindowLong( hThisWnd, GWL_STYLE );
		SetWindowLong( hThisWnd, GWL_STYLE, lStyle & 

Cool hack!