Finding screen width and height dynamically in OpenGL GLUT program
===

In my OpenGL program, in order to run it in fullscreen mode, I'm using the GLUT function glutGameModeString(const char *string).<br> (where 'string' specifies the screen width,height,pixelDepth and refresh rate)<br><br> To make it working in any system,i need to dynamically determine the screen width and screen height of the host system, prior to making the call to 'glutGameModeString' function.<br>How do I do that?