Greetings OpenGL-gurus!
In which way can I determine the windows dimensions (width and height)
just by using the GL and GLU functions.
Ciao...
Mirco
In which way can I determine the windows dimensions (width and height)
just by using the GL and GLU functions.
Ciao...
Mirco
You should try to avoid GLU since it's not documented, not supported
and obsolete.
If (as usually recommended) you move from GLU to GLUT, there are
convenient glutGet functions to read the window dimensions.
--
Steve Baker (817)619-2657 (Vox/Vox-Mail)
Raytheon Systems Inc. (817)619-2466 (Fax)
> > In which way can I determine the windows dimensions (width and height)
> > just by using the GL and GLU functions.
> There isn't a way in OpenGL.
??? Steve, did you forget your morning coffee? GLU is well documented,Quote:> You should try to avoid GLU since it's not documented, not supported
> and obsolete.
> > You should try to avoid GLU since it's not documented, not supported
> > and obsolete.
> ??? Steve, did you forget your morning coffee? GLU is well documented,
> supported, and hardly obsolete. Are you thinking of AUX?
I think people have been slipping me decaf since the last
bunch of flames on OpenGL-Gamedev.
Sorry:
GLU - Fine! Great! Use it!
AUX - Obsolete - don't use it!
However, GLU *won't* help you find the window dimensions.
--
Steve Baker http://web2.airmail.net/sjbaker1
Brett G
> In which way can I determine the windows dimensions (width and height)
> just by using the GL and GLU functions.
> Ciao...
> Mirco
Ahum! One reason to use aux:Quote:> GLU - Fine! Great! Use it!
> AUX - Obsolete - don't use it!
If you have VC++, you can hack the DIBLOOK example program to do theQuote:>> AUX - Obsolete - don't use it!
>Ahum! One reason to use aux:
>auxdibimageload WHOOHAH!
>:)
>(never used anything else btw;)
-Paul Martz
Hewlett Packard Workstation Systems Lab
To reply, remove "DONTSPAM" from email address.
Thanks, I'm a newbie.
Yunnhong
> To determine the window dimensions, use GetSystemMetrics("flags") with
> either SM_CXFULLSCREEN or SM_CYFULLSCREEN as your flag.
> Note, this is only useful for fullscreen. For a windowed screen, you'll
> have to check whatever helpfiles you have to determine which flags to use.
> Brett G
> > Greetings OpenGL-gurus!
> > In which way can I determine the windows dimensions (width and height)
> > just by using the GL and GLU functions.
> > Ciao...
> > Mirco
1. determining image dimensions/resizing precisely
I have imported a number of JPEG images and then resized them using
Transform within their layers. Visually, they now appear as rectangular
boxes within beveled borders. However, since I sized them by eye, I can
tell they do not all have exactly the same x/y dimensions.
I there a way I can settle on one of the images as a model, read its
x/y dimensions, and then resize the others to match?
2. banners?
3. How to determine current window ?
4. * The Next Phase Of Development *
5. determining Window's screen coordinates of gl drawing
6. Help needed 3-D Projection User Interface Issues
7. Determine Color Mode (16, 256, 16k) of Windows
8. {HELP] Mouse point flickering and slowdown in rendering in Windwos
9. need crack please adobe dimensions 3.0 windows tank
11. Dimensions of GLUI Sub-windows
13. Presentation of 5 dimensions in Windows (and UNIX)