OpenGL Super Bible! Page 461 pfd.cColorBits = 0;
OpenGL Super Bible! Page 461 pfd.cColorBits = 0; /* Best color buffer please */ pfd.cDepthBits = 32; /* Need a depth buffer */ pfd.cStencilBits = 0; /* No stencil buffer */ pfd.cAccumBits = 0; /* No accumulation buffer */ pf = ChoosePixelFormat(SceneDC, &pfd); if (pf == 0) DisplayErrorMessage(’texscene was unable to choose a suitable pixel format! ); else if (!SetPixelFormat(SceneDC, pf, &pfd)) DisplayErrorMessage(’texscene was unable to set the pixel format! ); MakePalette(pf); SceneRC = wglCreateContext(SceneDC); wglMakeCurrent(SceneDC, SceneRC); /* * Load all the texture images into display lists */ LoadAllTextures(); break; case WM_SIZE : case WM_PAINT : /* * Repaint the client area with our bitmap */ BeginPaint(hWnd, &ps); GetClientRect(hWnd, &rect); RepaintWindow(&rect); EndPaint(hWnd, &ps); break; case WM_COMMAND : /* * Handle menu selections */ switch (LOWORD(wParam)) { case IDM_FILE_SAVEAS : SaveBitmapFile(); break; case IDM_FILE_PRINT : PrintBitmap(); break; case IDM_FILE_EXIT :
You want to have a cheap webhost for your apache application, then check apache web hosting services.