Page 474 (Web hosting faq) OpenGL Super Bible! i += buffer[i];
Page 474 OpenGL Super Bible! i += buffer[i]; /* * Fill-in the 4 corners of the selected cell */ draw_cell(x, y); draw_cell(x + 1, y); draw_cell(x, y + 1); draw_cell(x + 1, y + 1); /* * Update lighting normals for the terrain. */ UpdateNormals(); }; } /* * ‘FlyTerrain() - Fly using the given mouse position. */ void FlyTerrain(int mousex, /* I - Horizontal mouse position */ int mousey) /* I - Vertical mouse position */ { RECT rect; /* Current client rectangle */ GLfloat movex, movey; /* Scale mouse movement */ double curtime, /* Current time in seconds */ distance; /* Distance to move */ GLfloat cheading, /* Cosine of heading */ sheading, /* Sine of heading */ cpitch, /* Cosine of pitch */ spitch; /* Sine of pitch */ /* * Get the current system time to figure out how far to move. */ curtime = GetClock(); distance = 10.0 * (curtime - MoveTime); MoveTime = curtime; /* * See how far the mouse pointer is from the ‘center (click) * position. */ movex = 0.05 * (mousex - CenterMouseXY.x); movey = 0.05 * (mousey - CenterMouseXY.y); /* * Adjust roll, pitch, and heading according to the current * mouse inputs and orientation.
Note: In case you are looking for affordable and reliable webhost to host and run your j2ee application check Vision J2ee Web Hosting services.