Richard Rauch - 2004-05-10

Logged In: YES
user_id=854844

When I documented OpenGLUT, I moved a buried comment about
this into the "top-matter" for the window management section.
For some reason, that is now in the "internal" documentation,
though the comment seems very important for anyone who cares
about their window dimension.

OpenGLUT borrows from freeglut the behavior that the window
position is set according to upper left corner of your
(possibly 0-width/0-height) border. Then when you do a
glutGet() on that data, you actually get the position of
your *drawable* region within the window.

freeglut made a conscious decision to do this this way in
order to try to find some kind of happy medium between what
WIN32 and X11 versions of old GLUT used to do (and in order
to respect what could and could not be done with X). E.g.,
under X, it is not possible to determine the window border
size in advance, so your window pos has to be set the way
that it is. It is less clear to me why freeglut chose not
use the same reference point for the glutGet(), however.

As for assigning an icon, I do not think that there is any
freeglut way to set that. I was just thinking over this,
myself, this morning. I assume that you mean when your
window is in iconified mode, not an icon to be used for
running the application. (^&

It'd be nice to have, but the meaning is not terribly clear
for WIN32. (I guess there's a little graphic picture that
goes next to your application name in the task bar.)