Lines Matching refs:Visual

58    if (fb->Visual.depthBits == 0) {
65 else if (fb->Visual.depthBits < 32) {
66 fb->_DepthMax = (1 << fb->Visual.depthBits) - 1;
139 fb->Visual = *visual;
422 * etc. are satisfied by the fields of ctx->DrawBuffer->Visual. These can
424 * the given framebuffer's Visual from the current renderbuffer bindings.
428 * Also note: ctx->DrawBuffer->Visual.depthBits might not equal
437 memset(&fb->Visual, 0, sizeof(fb->Visual));
438 fb->Visual.rgbMode = GL_TRUE; /* assume this */
451 fb->Visual.samples = rb->NumSamples;
452 fb->Visual.sampleBuffers = rb->NumSamples > 0 ? 1 : 0;
455 fb->Visual.redBits = _mesa_get_format_bits(fmt, GL_RED_BITS);
456 fb->Visual.greenBits = _mesa_get_format_bits(fmt, GL_GREEN_BITS);
457 fb->Visual.blueBits = _mesa_get_format_bits(fmt, GL_BLUE_BITS);
458 fb->Visual.alphaBits = _mesa_get_format_bits(fmt, GL_ALPHA_BITS);
459 fb->Visual.rgbBits = fb->Visual.redBits
460 + fb->Visual.greenBits + fb->Visual.blueBits;
462 fb->Visual.sRGBCapable = ctx->Extensions.EXT_sRGB;
468 fb->Visual.floatMode = GL_FALSE;
475 fb->Visual.floatMode = GL_TRUE;
485 fb->Visual.haveDepthBuffer = GL_TRUE;
486 fb->Visual.depthBits = _mesa_get_format_bits(fmt, GL_DEPTH_BITS);
493 fb->Visual.haveStencilBuffer = GL_TRUE;
494 fb->Visual.stencilBits = _mesa_get_format_bits(fmt, GL_STENCIL_BITS);
501 fb->Visual.haveAccumBuffer = GL_TRUE;
502 fb->Visual.accumRedBits = _mesa_get_format_bits(fmt, GL_RED_BITS);
503 fb->Visual.accumGreenBits = _mesa_get_format_bits(fmt, GL_GREEN_BITS);
504 fb->Visual.accumBlueBits = _mesa_get_format_bits(fmt, GL_BLUE_BITS);
505 fb->Visual.accumAlphaBits = _mesa_get_format_bits(fmt, GL_ALPHA_BITS);
1013 buffer->Visual.samples :