Lines Matching refs:buffer
50 * This value depends on the Z buffer resolution.
56 /* Special case. Even if we don't have a depth buffer we need
186 * Deallocate buffer and everything attached to it.
311 /* Signal new buffer state so that swrast will update its clipping
348 struct gl_framebuffer *buffer = ctx->WinSysDrawBuffer;
350 assert(_mesa_is_winsys_fbo(buffer));
352 /* ask device driver for size of output buffer */
353 ctx->Driver.GetBufferSize( buffer, &newWidth, &newHeight );
355 /* see if size of device driver's color buffer (window) has changed */
356 if (buffer->Width != newWidth || buffer->Height != newHeight) {
358 ctx->Driver.ResizeBuffers(ctx, buffer, newWidth, newHeight );
365 struct gl_framebuffer *buffer = ctx->WinSysReadBuffer;
367 assert(_mesa_is_winsys_fbo(buffer));
369 /* ask device driver for size of read buffer */
370 ctx->Driver.GetBufferSize( buffer, &newWidth, &newHeight );
372 /* see if size of device driver's color buffer (window) has changed */
373 if (buffer->Width != newWidth || buffer->Height != newHeight) {
375 ctx->Driver.ResizeBuffers(ctx, buffer, newWidth, newHeight );
434 * Update the context's current drawing buffer's Xmin, Xmax, Ymin, Ymax fields.
435 * These values are computed from the buffer's width and height and
442 struct gl_framebuffer *buffer = ctx->DrawBuffer;
444 if (!buffer)
447 if (_mesa_is_user_fbo(buffer)) {
449 update_framebuffer_size(ctx, buffer);
452 buffer->_Xmin = 0;
453 buffer->_Ymin = 0;
454 buffer->_Xmax = buffer->Width;
455 buffer->_Ymax = buffer->Height;
458 if (ctx->Scissor.X > buffer->_Xmin) {
459 buffer->_Xmin = ctx->Scissor.X;
461 if (ctx->Scissor.Y > buffer->_Ymin) {
462 buffer->_Ymin = ctx->Scissor.Y;
464 if (ctx->Scissor.X + ctx->Scissor.Width < buffer->_Xmax) {
465 buffer->_Xmax = ctx->Scissor.X + ctx->Scissor.Width;
467 if (ctx->Scissor.Y + ctx->Scissor.Height < buffer->_Ymax) {
468 buffer->_Ymax = ctx->Scissor.Y + ctx->Scissor.Height;
471 if (buffer->_Xmin > buffer->_Xmax) {
472 buffer->_Xmin = buffer->_Xmax;
474 if (buffer->_Ymin > buffer->_Ymax) {
475 buffer->_Ymin = buffer->_Ymax;
479 ASSERT(buffer->_Xmin <= buffer->_Xmax);
480 ASSERT(buffer->_Ymin <= buffer->_Ymax);
640 /* set 0th buffer to NULL now in case _NumColorDrawBuffers is zero */
749 * \param reading if TRUE, we're going to read from the buffer,
750 if FALSE, we're going to write to the buffer.
751 * \return GL_TRUE if buffer exists, GL_FALSE otherwise
797 /* about to read from a color buffer */
848 * \return GL_TRUE if buffer exists, GL_FALSE otherwise