Lines Matching refs:Visual
55 if (fb->Visual.depthBits == 0) {
62 else if (fb->Visual.depthBits < 32) {
63 fb->_DepthMax = (1 << fb->Visual.depthBits) - 1;
85 _mesa_create_framebuffer(const struct gl_config *visual)
88 assert(visual);
90 _mesa_initialize_window_framebuffer(fb, visual);
124 const struct gl_config *visual)
127 assert(visual);
135 /* save the visual */
136 fb->Visual = *visual;
139 if (visual->doubleBufferMode) {
486 * etc. are satisfied by the fields of ctx->DrawBuffer->Visual. These can
488 * the given framebuffer's Visual from the current renderbuffer bindings.
492 * Also note: ctx->DrawBuffer->Visual.depthBits might not equal
503 memset(&fb->Visual, 0, sizeof(fb->Visual));
504 fb->Visual.rgbMode = GL_TRUE; /* assume this */
508 /* leave visual fields zero'd */
524 fb->Visual.samples = rb->NumSamples;
525 fb->Visual.sampleBuffers = rb->NumSamples > 0 ? 1 : 0;
528 fb->Visual.redBits = _mesa_get_format_bits(fmt, GL_RED_BITS);
529 fb->Visual.greenBits = _mesa_get_format_bits(fmt, GL_GREEN_BITS);
530 fb->Visual.blueBits = _mesa_get_format_bits(fmt, GL_BLUE_BITS);
531 fb->Visual.alphaBits = _mesa_get_format_bits(fmt, GL_ALPHA_BITS);
532 fb->Visual.rgbBits = fb->Visual.redBits
533 + fb->Visual.greenBits + fb->Visual.blueBits;
535 fb->Visual.sRGBCapable = ctx->Extensions.EXT_framebuffer_sRGB;
541 fb->Visual.floatMode = GL_FALSE;
548 fb->Visual.floatMode = GL_TRUE;
558 fb->Visual.haveDepthBuffer = GL_TRUE;
559 fb->Visual.depthBits = _mesa_get_format_bits(fmt, GL_DEPTH_BITS);
566 fb->Visual.haveStencilBuffer = GL_TRUE;
567 fb->Visual.stencilBits = _mesa_get_format_bits(fmt, GL_STENCIL_BITS);
574 fb->Visual.haveAccumBuffer = GL_TRUE;
575 fb->Visual.accumRedBits = _mesa_get_format_bits(fmt, GL_RED_BITS);
576 fb->Visual.accumGreenBits = _mesa_get_format_bits(fmt, GL_GREEN_BITS);
577 fb->Visual.accumBlueBits = _mesa_get_format_bits(fmt, GL_BLUE_BITS);
578 fb->Visual.accumAlphaBits = _mesa_get_format_bits(fmt, GL_ALPHA_BITS);