Page 458 OpenGL Super Bible! TerrainWindow = CreateDialog(hInst, (Web hosting mysql)
Sunday, December 30th, 2007Page 458 OpenGL Super Bible! TerrainWindow = CreateDialog(hInst, MAKEINTRESOURCE(IDD_TERRAIN_DIALOG), SceneWindow, (DLGPROC)TerrainDlgProc); /* * Loop on events until the user quits this application */ while (TRUE) { /* * Process all messages in the queue */ while (!Moving || PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE) == TRUE) if (GetMessage(&msg, NULL, 0, 0)) { TranslateMessage(&msg); DispatchMessage(&msg); } else return (1); /* * Handle flying as necessary */ GetCursorPos(&pos); FlyTerrain(pos.x, pos.y); }; return (msg.wParam); } /* * ‘DisplayErrorMessage() - Display an error message dialog. */ void DisplayErrorMessage(char *format, /* I - printf() style format string */ …) /* I - Other arguments as necessary */ { va_list ap; /* Argument pointer */ char s[1024]; /* Output string */ if (format == NULL) return; va_start(ap, format); vsprintf(s, format, ap); va_end(ap);
Visit our web design programs services for an affordable and reliable webhost to suit all your needs.