View Full Version : Help on glutGet...

06-20-2003, 02:01 AM
Anyone knows what is the function in OpenGL that are/is equivalent with "glutGet" function in GLUT?

06-20-2003, 02:31 AM
There's a whole host of glGet* methods, like glGetString() and glGetIntegerv(), are these the ones you're looking for?

Check Appendix B in the Red book.

06-20-2003, 11:02 AM
thanx,the function that i need to replace is
glutGet(GLUT_INIT_WINDOW_HEIGHT), so what is it in windows, i mean what is the suitable function for those two GLUT function?any opinion?how to manipulate them using glGetIntegerv & glGetString???

06-22-2003, 12:05 AM
Ah, nope. You can't get window width or height from glGet* - that's information you need to get the windowing system to supply.

I presume you're replacing glutGet* because you're dropping GLUT support and using native windowing calls? Try looking at the docs for your native interface.

06-22-2003, 03:38 PM
so, do you have any suggestion on what i should use to replace the glutGet function?
for exampla can i just use the absolute value of the window size / width such as 512 x 512 or anything else???