OpenGL Super Bible! Page 463 * Release and (Adelphia web hosting)

OpenGL Super Bible! Page 463 * Release and free the device context, rendering * context, and color palette */ if (SceneRC) wglDeleteContext(SceneRC); if (SceneDC) ReleaseDC(SceneWindow, SceneDC); if (ScenePalette) DeleteObject(ScenePalette); PostQuitMessage(0); break; case WM_QUERYNEWPALETTE : /* * Realize the color palette if necessary */ if (ScenePalette) { SelectPalette(SceneDC, ScenePalette, FALSE); RealizePalette(SceneDC); InvalidateRect(hWnd, NULL, FALSE); return (TRUE); }; break; case WM_PALETTECHANGED: /* * Reselect our color palette if necessary */ if (ScenePalette && (HWND)wParam != hWnd) { SelectPalette(SceneDC, ScenePalette, FALSE); RealizePalette(SceneDC); UpdateColors(SceneDC); }; break; case WM_LBUTTONDOWN : /* * The left mouse button just was pressed. If we have * the terrain dialog window open, then this signifies * the beginning of drawing. * * Otherwise, set the ‘Moving flag to true to indicate * flying. */
In case you need quality webspace to host and run your web applications, try our personal web hosting services.

Leave a Reply