Reputation: 8511
The question is quite clear, GLUT provides us functions to create a windowed application. But presently I need to re-design the title bar, and also the border styles. Anyway to remove the borders and title bar? (certainly I'm talking about C++ or Visual C++ 'cause this is an OpenGL related question)
Upvotes: 3
Views: 2454
Reputation: 52094
You have at least three options:
Modify your GLUT implementation to add this feature. If you're using FreeGLUT look into the implementation of fgOpenWindow()
in freeglut_window.c
.
Use a different framework that supports this feature. It looks like SFML should.
Manage the OS interface yourself.
Upvotes: 3
Reputation: 162164
GLUT is a simplicistic framework without much functionality. What you want to do is simply not featured by GLUT and can't be done with it. Practically this means, you have to roll your own thing, which, luckily, is not so hard. Or you use one of the two open source variants of GLUT (FreeGLUT and OpenGLUT) and extend them with your desires.
Upvotes: 5