Lines Matching defs:pfd
80 /* The bReserved flag of the pfd contains the
140 PIXELFORMATDESCRIPTOR pfd;
148 memset(&pfd, 0, sizeof(PIXELFORMATDESCRIPTOR));
149 pfd.nSize = (sizeof(PIXELFORMATDESCRIPTOR));
150 pfd.nVersion = 1;
153 pfd.dwFlags = PFD_SUPPORT_OPENGL | PFD_DRAW_TO_WINDOW;
154 pfd.iPixelType = PFD_TYPE_COLORINDEX;
155 pfd.cColorBits = 32;
156 pfd.cDepthBits = 0;
161 pfd.dwFlags |= PFD_SUPPORT_OPENGL;
164 pfd.cColorBits = *(++p);
167 /* the bReserved flag of the pfd contains the
169 pfd.bReserved = *(++p);
172 pfd.iPixelType = PFD_TYPE_RGBA;
175 pfd.dwFlags |= PFD_DOUBLEBUFFER;
179 pfd.dwFlags |= PFD_STEREO;
182 pfd.cAuxBuffers = *(++p);
185 pfd.cRedBits = 8; /* Try to get the maximum. */
189 pfd.cGreenBits = 8;
193 pfd.cBlueBits = 8;
197 pfd.cAlphaBits = 8;
201 pfd.cDepthBits = 32;
205 pfd.cStencilBits = *(++p);
216 pfd.cAccumBits = 1;
224 pf = ChoosePixelFormat(XHDC, &pfd);