Lines Matching refs:pfi
130 struct stw_pixelformat_info *pfi;
143 pfi = &stw_dev->pixelformats[stw_dev->pixelformat_extended_count];
145 memset(pfi, 0, sizeof *pfi);
147 pfi->pfd.nSize = sizeof pfi->pfd;
148 pfi->pfd.nVersion = 1;
150 pfi->pfd.dwFlags = PFD_SUPPORT_OPENGL;
154 pfi->pfd.dwFlags |= PFD_DRAW_TO_WINDOW;
158 pfi->pfd.dwFlags |= PFD_SUPPORT_COMPOSITION;
161 pfi->pfd.dwFlags |= PFD_DOUBLEBUFFER | PFD_SWAP_COPY;
163 pfi->pfd.iPixelType = PFD_TYPE_RGBA;
165 pfi->pfd.cColorBits = color->bits.red + color->bits.green + color->bits.blue + color->bits.alpha;
166 pfi->pfd.cRedBits = color->bits.red;
167 pfi->pfd.cRedShift = color->shift.red;
168 pfi->pfd.cGreenBits = color->bits.green;
169 pfi->pfd.cGreenShift = color->shift.green;
170 pfi->pfd.cBlueBits = color->bits.blue;
171 pfi->pfd.cBlueShift = color->shift.blue;
172 pfi->pfd.cAlphaBits = color->bits.alpha;
173 pfi->pfd.cAlphaShift = color->shift.alpha;
174 pfi->pfd.cAccumBits = 4*accum;
175 pfi->pfd.cAccumRedBits = accum;
176 pfi->pfd.cAccumGreenBits = accum;
177 pfi->pfd.cAccumBlueBits = accum;
178 pfi->pfd.cAccumAlphaBits = accum;
179 pfi->pfd.cDepthBits = depth->bits.depth;
180 pfi->pfd.cStencilBits = depth->bits.stencil;
181 pfi->pfd.cAuxBuffers = 0;
182 pfi->pfd.iLayerType = 0;
183 pfi->pfd.bReserved = 0;
184 pfi->pfd.dwLayerMask = 0;
185 pfi->pfd.dwVisibleMask = 0;
186 pfi->pfd.dwDamageMask = 0;
192 pfi->stvis.buffer_mask = ST_ATTACHMENT_FRONT_LEFT_MASK;
194 pfi->stvis.buffer_mask |= ST_ATTACHMENT_BACK_LEFT_MASK;
196 pfi->stvis.color_format = color->format;
197 pfi->stvis.depth_stencil_format = depth->format;
199 pfi->stvis.accum_format = (accum) ?
202 pfi->stvis.samples = samples;
203 pfi->stvis.render_buffer = ST_ATTACHMENT_INVALID;
323 const struct stw_pixelformat_info *pfi;
337 pfi = stw_pixelformat_get_info( iPixelFormat );
338 if (!pfi) {
342 memcpy(ppfd, &pfi->pfd, sizeof( PIXELFORMATDESCRIPTOR ));
412 const struct stw_pixelformat_info *pfi = stw_pixelformat_get_info( index );
416 !!(pfi->pfd.dwFlags & PFD_DOUBLEBUFFER))
420 if (ppfd->cColorBits != pfi->pfd.cColorBits)
423 if (ppfd->cDepthBits != pfi->pfd.cDepthBits)
426 if (ppfd->cStencilBits != pfi->pfd.cStencilBits)
429 if (ppfd->cAlphaBits != pfi->pfd.cAlphaBits)