Lines Matching defs:pf
453 get_pf_attrib(HDC hdc, int pf, int attrib)
457 if (wglGetPixelFormatAttribivARB_func(hdc, pf, layer, 1, &attrib, &value)) {
467 * Fill in the format_info fields for the pixel format given by pf.
470 get_format_info(HDC hdc, int pf, struct format_info *info)
478 if (get_pf_attrib(hdc, pf, WGL_DRAW_TO_WINDOW_ARB))
480 if (!get_pf_attrib(hdc, pf, WGL_ACCELERATION_ARB))
482 if (get_pf_attrib(hdc, pf, WGL_SUPPORT_OPENGL_ARB))
484 if (get_pf_attrib(hdc, pf, WGL_DOUBLE_BUFFER_ARB))
486 if (get_pf_attrib(hdc, pf, WGL_STEREO_ARB))
489 if (get_pf_attrib(hdc, pf, WGL_DRAW_TO_BITMAP_ARB))
491 if (have_WGL_ARB_pbuffer && get_pf_attrib(hdc, pf, WGL_DRAW_TO_PBUFFER_ARB))
493 if (get_pf_attrib(hdc, pf, WGL_SUPPORT_GDI_ARB))
496 swapMethod = get_pf_attrib(hdc, pf, WGL_SWAP_METHOD_ARB);
502 int pixel_type = get_pf_attrib(hdc, pf, WGL_PIXEL_TYPE_ARB);
512 info->pfd.cColorBits = get_pf_attrib(hdc, pf, WGL_COLOR_BITS_ARB);
513 info->pfd.cRedBits = get_pf_attrib(hdc, pf, WGL_RED_BITS_ARB);
514 info->pfd.cGreenBits = get_pf_attrib(hdc, pf, WGL_GREEN_BITS_ARB);
515 info->pfd.cBlueBits = get_pf_attrib(hdc, pf, WGL_BLUE_BITS_ARB);
516 info->pfd.cAlphaBits = get_pf_attrib(hdc, pf, WGL_ALPHA_BITS_ARB);
518 info->pfd.cDepthBits = get_pf_attrib(hdc, pf, WGL_DEPTH_BITS_ARB);
519 info->pfd.cStencilBits = get_pf_attrib(hdc, pf, WGL_STENCIL_BITS_ARB);
520 info->pfd.cAuxBuffers = get_pf_attrib(hdc, pf, WGL_AUX_BUFFERS_ARB);
522 info->pfd.cAccumRedBits = get_pf_attrib(hdc, pf,
524 info->pfd.cAccumGreenBits = get_pf_attrib(hdc, pf,
526 info->pfd.cAccumBlueBits = get_pf_attrib(hdc, pf,
528 info->pfd.cAccumAlphaBits = get_pf_attrib(hdc, pf,
531 info->sampleBuffers = get_pf_attrib(hdc, pf, WGL_SAMPLE_BUFFERS_ARB);
532 info->numSamples = get_pf_attrib(hdc, pf, WGL_SAMPLES_ARB);
534 info->transparency = get_pf_attrib(hdc, pf, WGL_TRANSPARENT_ARB);
537 info->srgb = get_pf_attrib(hdc, pf, WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB);
541 if (!DescribePixelFormat(hdc, pf,