Jetty web server - Page 56 OpenGL Super Bible! the AUX library
Page 56 OpenGL Super Bible! the AUX library by default created a viewport that matched the window size exactly (0, 0, 250, 250). The clipping volume by default was set to be the first quadrant of Cartesian space, with the x- and y-axis extending the length and height of the window. The z-axis extends perpendicular to the viewer, giving a flat 2D appearance to objects drawn in the xy plane. Figure 3-6 illustrates this graphically. Figure 3-6 The viewport and clipping volume for friendly.c Although our drawing is a 2D flat rectangle, we are actually drawing in a 3D coordinate space. The glRectf() function draws the rectangle in the xy plane at z = 0. Your perspective is down along the positive z-axis to see the square rectangle at z = 0. Whenever the window size changes, the viewport and clipping volume must be redefined for the new window dimensions. Otherwise, you ll see the effect shown in Figure 3-5, where the mapping of the coordinate system to screen coordinates stays the same regardless of window size. Because window size changes are detected and handled differently under various environments, the AUX library provides the function auxReshapeFunc(), which registers a callback that the AUX library will call whenever the window dimensions change. The function you pass to auxReshapeFunc() is prototyped like this: void CALLBACK ChangeSize(GLsizei w, GLsizei h);
Note: In case you are looking for affordable webhost to host and run your servlet application check Vision make web site services