View Full Version : window's size
03-30-2001, 06:08 AM
how to get the window's size (height and width) ?
03-30-2001, 06:16 AM
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)
03-30-2001, 07:23 AM
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.
ATI Research, Inc.
3D Application Research Group
[This message has been edited by chrisATI (edited 03-30-2001).]
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.