Web hosting uk - Page 480 OpenGL Super Bible! height[TERRAIN_SIZE], (GLfloat)(y -
January 21st, 2008Page 480 OpenGL Super Bible! height[TERRAIN_SIZE], (GLfloat)(y - TERRAIN_EDGE + 1)); }; glEnd(); }; glPopMatrix(); /* * While we fly or draw we re double-buffering. Swap buffers * as necessary */ glFinish(); if (Moving || Drawing) SwapBuffers(SceneDC); } /* * ‘SaveBitmapFile() - Save the currently displayed scene to disk. */ void SaveBitmapFile(void) { char title[256], /* Title of file */ filename[256], /* Name of file */ directory[256]; /* Current directory */ OPENFILENAME ofn; /* Filename dialog structure */ void *bits; /* Screen bitmap bits */ BITMAPINFO *info; /* Screen bitmap info */ /* * Grab the screen bitmap */ bits = ReadDIBitmap(&info); if (bits == NULL) { DisplayErrorMessage(’Unable to get OpenGL bitmap from screen! ); return; }; /* * Pop up a filename dialog */ strcpy(directory, ‘. ); strcpy(filename, ‘untitled.bmp ); strcpy(title, ‘’); memset(&ofn, 0, sizeof(ofn)); ofn.lStructSize = sizeof(ofn); ofn.hwndOwner = SceneWindow;
We would like to recommend you tested and proved virtual web hosting services, which you will surely find to be of great quality.