Home | History | Annotate | Download | only in main

Lines Matching refs:shift

194  * Apply color index shift and offset to an array of pixels.
200 GLint shift = ctx->Pixel.IndexShift;
203 if (shift > 0) {
205 indexes[i] = (indexes[i] << shift) + offset;
208 else if (shift < 0) {
209 shift = -shift;
211 indexes[i] = (indexes[i] >> shift) + offset;
224 * Apply color index shift, offset and table lookup to an array
247 * Apply stencil index shift, offset and table lookup to an array
256 GLint shift = ctx->Pixel.IndexShift;
258 if (shift > 0) {
260 stencil[i] = (stencil[i] << shift) + offset;
263 else if (shift < 0) {
264 shift = -shift;
266 stencil[i] = (stencil[i] >> shift) + offset;