Vps web hosting - OpenGL Super Bible! Page 459 MessageBeep(MB_ICONEXCLAMATION); MessageBox(NULL, s,

OpenGL Super Bible! Page 459 MessageBeep(MB_ICONEXCLAMATION); MessageBox(NULL, s, ‘Error , MB_OK | MB_ICONEXCLAMATION); } /* * ‘MakePalette() - Make a color palette for RGB colors if necessary. */ void MakePalette(int pf) /* I - Pixel format ID */ { PIXELFORMATDESCRIPTOR pfd; /* Pixel format information */ LOGPALETTE *pPal; /* Pointer to logical palette */ int nColors; /* Number of entries in palette */ int i, /* Color index */ rmax, /* Maximum red value */ gmax, /* Maximum green va6lue */ bmax; /* Maximum blue value */ /* * Find out if we need to define a color palette */ DescribePixelFormat(SceneDC, pf, sizeof(PIXELFORMATDESCRIPTOR), &pfd); if (!(pfd.dwFlags & PFD_NEED_PALETTE)) { ScenePalette = NULL; return; }; /* * Allocate memory for a color palette */ nColors = 1 << pfd.cColorBits; pPal = (LOGPALETTE *)malloc(sizeof(LOGPALETTE) + nColors * sizeof(PALETTEENTRY)); pPal->palVersion = 0×300; pPal->palNumEntries = nColors; /* * Get the maximum values for red, green, and blue. Then build ‘nColors * colors */ rmax = (1 << pfd.cRedBits) - 1; gmax = (1 << pfd.cGreenBits) - 1; bmax = (1 << pfd.cBlueBits) - 1;
From our experience, we can recommend PHP Web Hosting services, if you need affordable webhost to host and run your web application.

Leave a Reply