window's size

how to get the window’s size (height and width) ?

depends on your OS

in windows, you can use a number of functions for determining this:

also, during a WM_SIZE message
width = LOWORD(lParam)
height = HIWORD(lParam)

if you are using glut then you can set the initial window size with glutInitWindowSize and then use glutReshapeFunc to set up a reshape handler that will keep track of window reshape events.

Christopher Oat
ATI Research, Inc.
3D Application Research Group

[This message has been edited by chrisATI (edited 03-30-2001).]