Lines Matching defs:texUnit

51              struct gl_fixedfunc_texture_unit *texUnit,
56 if (texUnit->EnvMode == mode)
81 texUnit->EnvMode = mode;
91 struct gl_fixedfunc_texture_unit *texUnit,
94 if (TEST_EQ_4V(color, texUnit->EnvColorUnclamped))
97 COPY_4FV(texUnit->EnvColorUnclamped, color);
98 texUnit->EnvColor[0] = CLAMP(color[0], 0.0F, 1.0F);
99 texUnit->EnvColor[1] = CLAMP(color[1], 0.0F, 1.0F);
100 texUnit->EnvColor[2] = CLAMP(color[2], 0.0F, 1.0F);
101 texUnit->EnvColor[3] = CLAMP(color[3], 0.0F, 1.0F);
108 struct gl_fixedfunc_texture_unit *texUnit,
149 if (texUnit->Combine.ModeRGB == mode)
152 texUnit->Combine.ModeRGB = mode;
156 if (texUnit->Combine.ModeA == mode)
159 texUnit->Combine.ModeA = mode;
174 struct gl_fixedfunc_texture_unit *texUnit,
254 texUnit->Combine.SourceA[term] = param;
256 texUnit->Combine.SourceRGB[term] = param;
265 struct gl_fixedfunc_texture_unit *texUnit,
325 texUnit->Combine.OperandA[term] = param;
327 texUnit->Combine.OperandRGB[term] = param;
335 struct gl_fixedfunc_texture_unit *texUnit,
357 if (texUnit->Combine.ScaleShiftRGB == shift)
360 texUnit->Combine.ScaleShiftRGB = shift;
363 if (texUnit->Combine.ScaleShiftA == shift)
366 texUnit->Combine.ScaleShiftA = shift;
392 struct gl_fixedfunc_texture_unit *texUnit =
401 if (!texUnit)
406 set_env_mode(ctx, texUnit, (GLenum) iparam0);
409 set_env_color(ctx, texUnit, param);
413 if (!set_combiner_mode(ctx, texUnit, pname, (GLenum) iparam0))
424 if (!set_combiner_source(ctx, texUnit, pname, (GLenum) iparam0))
435 if (!set_combiner_operand(ctx, texUnit, pname, (GLenum) iparam0))
440 if (!set_combiner_scale(ctx, texUnit, pname, param[0]))
449 struct gl_texture_unit *texUnit =
453 if (texUnit->LodBias == param[0])
456 texUnit->LodBias = param[0];
457 texUnit->LodBiasQuantized = util_quantize_lod_bias(param[0]);
617 const struct gl_fixedfunc_texture_unit *texUnit,
622 return texUnit->EnvMode;
625 return texUnit->Combine.ModeRGB;
627 return texUnit->Combine.ModeA;
632 return texUnit->Combine.SourceRGB[rgb_idx];
636 return texUnit->Combine.SourceRGB[3];
646 return texUnit->Combine.SourceA[alpha_idx];
650 return texUnit->Combine.SourceA[3];
660 return texUnit->Combine.OperandRGB[op_rgb];
664 return texUnit->Combine.OperandRGB[3];
674 return texUnit->Combine.OperandA[op_alpha];
678 return texUnit->Combine.OperandA[3];
685 return 1 << texUnit->Combine.ScaleShiftRGB;
687 return 1 << texUnit->Combine.ScaleShiftA;
711 struct gl_fixedfunc_texture_unit *texUnit =
720 if (!texUnit)
725 COPY_4FV( params, texUnit->EnvColor );
727 COPY_4FV( params, texUnit->EnvColorUnclamped );
730 GLint val = get_texenvi(ctx, texUnit, pname);
737 const struct gl_texture_unit *texUnit = _mesa_get_tex_unit(ctx, texunit);
740 *params = texUnit->LodBias;
787 struct gl_fixedfunc_texture_unit *texUnit =
796 if (!texUnit)
800 params[0] = FLOAT_TO_INT( texUnit->EnvColor[0] );
801 params[1] = FLOAT_TO_INT( texUnit->EnvColor[1] );
802 params[2] = FLOAT_TO_INT( texUnit->EnvColor[2] );
803 params[3] = FLOAT_TO_INT( texUnit->EnvColor[3] );
806 GLint val = get_texenvi(ctx, texUnit, pname);
813 const struct gl_texture_unit *texUnit = _mesa_get_tex_unit(ctx, texunit);
816 *params = (GLint) texUnit->LodBias;