Lines Matching refs:Pixel
27 * \file pixel.c
28 * Pixel transfer functions (glPixelZoom, glPixelMap, glPixelTransfer)
37 #include "pixel.h"
57 if (ctx->Pixel.ZoomX == xfactor &&
58 ctx->Pixel.ZoomY == yfactor)
62 ctx->Pixel.ZoomX = xfactor;
63 ctx->Pixel.ZoomY = yfactor;
516 if (ctx->Pixel.MapColorFlag == (param ? GL_TRUE : GL_FALSE))
519 ctx->Pixel.MapColorFlag = param ? GL_TRUE : GL_FALSE;
522 if (ctx->Pixel.MapStencilFlag == (param ? GL_TRUE : GL_FALSE))
525 ctx->Pixel.MapStencilFlag = param ? GL_TRUE : GL_FALSE;
528 if (ctx->Pixel.IndexShift == (GLint) param)
531 ctx->Pixel.IndexShift = (GLint) param;
534 if (ctx->Pixel.IndexOffset == (GLint) param)
537 ctx->Pixel.IndexOffset = (GLint) param;
540 if (ctx->Pixel.RedScale == param)
543 ctx->Pixel.RedScale = param;
546 if (ctx->Pixel.RedBias == param)
549 ctx->Pixel.RedBias = param;
552 if (ctx->Pixel.GreenScale == param)
555 ctx->Pixel.GreenScale = param;
558 if (ctx->Pixel.GreenBias == param)
561 ctx->Pixel.GreenBias = param;
564 if (ctx->Pixel.BlueScale == param)
567 ctx->Pixel.BlueScale = param;
570 if (ctx->Pixel.BlueBias == param)
573 ctx->Pixel.BlueBias = param;
576 if (ctx->Pixel.AlphaScale == param)
579 ctx->Pixel.AlphaScale = param;
582 if (ctx->Pixel.AlphaBias == param)
585 ctx->Pixel.AlphaBias = param;
588 if (ctx->Pixel.DepthScale == param)
591 ctx->Pixel.DepthScale = param;
594 if (ctx->Pixel.DepthBias == param)
597 ctx->Pixel.DepthBias = param;
620 * pixel transfer operations are enabled.
627 if (ctx->Pixel.RedScale != 1.0F || ctx->Pixel.RedBias != 0.0F ||
628 ctx->Pixel.GreenScale != 1.0F || ctx->Pixel.GreenBias != 0.0F ||
629 ctx->Pixel.BlueScale != 1.0F || ctx->Pixel.BlueBias != 0.0F ||
630 ctx->Pixel.AlphaScale != 1.0F || ctx->Pixel.AlphaBias != 0.0F)
633 if (ctx->Pixel.IndexShift || ctx->Pixel.IndexOffset)
636 if (ctx->Pixel.MapColorFlag)
644 * Update mesa pixel transfer derived state.
689 * Initialize the context's PIXEL attribute group.
694 /* Pixel group */
695 ctx->Pixel.RedBias = 0.0;
696 ctx->Pixel.RedScale = 1.0;
697 ctx->Pixel.GreenBias = 0.0;
698 ctx->Pixel.GreenScale = 1.0;
699 ctx->Pixel.BlueBias = 0.0;
700 ctx->Pixel.BlueScale = 1.0;
701 ctx->Pixel.AlphaBias = 0.0;
702 ctx->Pixel.AlphaScale = 1.0;
703 ctx->Pixel.DepthBias = 0.0;
704 ctx->Pixel.DepthScale = 1.0;
705 ctx->Pixel.IndexOffset = 0;
706 ctx->Pixel.IndexShift = 0;
707 ctx->Pixel.ZoomX = 1.0;
708 ctx->Pixel.ZoomY = 1.0;
709 ctx->Pixel.MapColorFlag = GL_FALSE;
710 ctx->Pixel.MapStencilFlag = GL_FALSE;
723 ctx->Pixel.ReadBuffer = GL_BACK;
726 ctx->Pixel.ReadBuffer = GL_FRONT;