Page 464 OpenGL Super Bible! SetCapture(SceneWindow); if (IsWindowVisible(TerrainWindow)) (Web site design)

Page 464 OpenGL Super Bible! SetCapture(SceneWindow); if (IsWindowVisible(TerrainWindow)) { DrawTerrain(LOWORD(lParam), HIWORD(lParam)); Drawing = GL_TRUE; } else { GetCursorPos(&CenterMouseXY); Moving = GL_TRUE; MoveTime = GetClock(); }; break; case WM_MOUSEMOVE : /* * The mouse pointer moved. If we are in the process of * drawing some terrain, do it. * * Otherwise, ignore the message because we fly from the * main loop. */ if (Drawing) DrawTerrain(LOWORD(lParam), HIWORD(lParam)); break; case WM_LBUTTONUP : /* * The user released the left mouse button. Stop drawing * or flying */ Moving = GL_FALSE; Drawing = GL_FALSE; ReleaseCapture(); InvalidateRect(SceneWindow, NULL, TRUE); break; default : /* * Pass all other messages through the default window * procedure */ return (DefWindowProc(hWnd, uMsg, wParam, lParam)); }; return (FALSE); } /* * ‘TerrainDlgProc()’ - Process messages in the terrain dialog window.
In case you need quality webspace to host and run your web applications, try our personal web hosting services.

Leave a Reply