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,
152 if (texUnit->Combine.ModeRGB == mode)
155 texUnit->Combine.ModeRGB = mode;
159 if (texUnit->Combine.ModeA == mode)
162 texUnit->Combine.ModeA = mode;
177 struct gl_fixedfunc_texture_unit *texUnit,
258 texUnit->Combine.SourceA[term] = param;
260 texUnit->Combine.SourceRGB[term] = param;
269 struct gl_fixedfunc_texture_unit *texUnit,
342 texUnit->Combine.OperandA[term] = param;
344 texUnit->Combine.OperandRGB[term] = param;
352 struct gl_fixedfunc_texture_unit *texUnit,
374 if (texUnit->Combine.ScaleShiftRGB == shift)
377 texUnit->Combine.ScaleShiftRGB = shift;
380 if (texUnit->Combine.ScaleShiftA == shift)
383 texUnit->Combine.ScaleShiftA = shift;
409 struct gl_fixedfunc_texture_unit *texUnit =
418 if (!texUnit)
423 set_env_mode(ctx, texUnit, (GLenum) iparam0);
426 set_env_color(ctx, texUnit, param);
430 if (!set_combiner_mode(ctx, texUnit, pname, (GLenum) iparam0))
441 if (!set_combiner_source(ctx, texUnit, pname, (GLenum) iparam0))
452 if (!set_combiner_operand(ctx, texUnit, pname, (GLenum) iparam0))
457 if (!set_combiner_scale(ctx, texUnit, pname, param[0]))
466 struct gl_texture_unit *texUnit =
470 if (texUnit->LodBias == param[0])
473 texUnit->LodBias = param[0];
474 texUnit->LodBiasQuantized = util_quantize_lod_bias(param[0]);
639 const struct gl_fixedfunc_texture_unit *texUnit,
644 return texUnit->EnvMode;
647 return texUnit->Combine.ModeRGB;
649 return texUnit->Combine.ModeA;
654 return texUnit->Combine.SourceRGB[rgb_idx];
658 return texUnit->Combine.SourceRGB[3];
668 return texUnit->Combine.SourceA[alpha_idx];
672 return texUnit->Combine.SourceA[3];
682 return texUnit->Combine.OperandRGB[op_rgb];
686 return texUnit->Combine.OperandRGB[3];
696 return texUnit->Combine.OperandA[op_alpha];
700 return texUnit->Combine.OperandA[3];
707 return 1 << texUnit->Combine.ScaleShiftRGB;
709 return 1 << texUnit->Combine.ScaleShiftA;
733 struct gl_fixedfunc_texture_unit *texUnit =
742 if (!texUnit)
747 COPY_4FV( params, texUnit->EnvColor );
749 COPY_4FV( params, texUnit->EnvColorUnclamped );
752 GLint val = get_texenvi(ctx, texUnit, pname);
759 const struct gl_texture_unit *texUnit = _mesa_get_tex_unit(ctx, texunit);
762 *params = texUnit->LodBias;
809 struct gl_fixedfunc_texture_unit *texUnit =
818 if (!texUnit)
822 params[0] = FLOAT_TO_INT( texUnit->EnvColor[0] );
823 params[1] = FLOAT_TO_INT( texUnit->EnvColor[1] );
824 params[2] = FLOAT_TO_INT( texUnit->EnvColor[2] );
825 params[3] = FLOAT_TO_INT( texUnit->EnvColor[3] );
828 GLint val = get_texenvi(ctx, texUnit, pname);
835 const struct gl_texture_unit *texUnit = _mesa_get_tex_unit(ctx, texunit);
838 *params = (GLint) texUnit->LodBias;