Home | History | Annotate | Download | only in main

Lines Matching refs:texUnit

50              struct gl_texture_unit *texUnit,
55 if (texUnit->EnvMode == mode)
80 texUnit->EnvMode = mode;
90 struct gl_texture_unit *texUnit,
93 if (TEST_EQ_4V(color, texUnit->EnvColorUnclamped))
96 COPY_4FV(texUnit->EnvColorUnclamped, color);
97 texUnit->EnvColor[0] = CLAMP(color[0], 0.0F, 1.0F);
98 texUnit->EnvColor[1] = CLAMP(color[1], 0.0F, 1.0F);
99 texUnit->EnvColor[2] = CLAMP(color[2], 0.0F, 1.0F);
100 texUnit->EnvColor[3] = CLAMP(color[3], 0.0F, 1.0F);
107 struct gl_texture_unit *texUnit,
156 if (texUnit->Combine.ModeRGB == mode)
159 texUnit->Combine.ModeRGB = mode;
163 if (texUnit->Combine.ModeA == mode)
166 texUnit->Combine.ModeA = mode;
178 struct gl_texture_unit *texUnit,
259 texUnit->Combine.SourceA[term] = param;
261 texUnit->Combine.SourceRGB[term] = param;
268 struct gl_texture_unit *texUnit,
341 texUnit->Combine.OperandA[term] = param;
343 texUnit->Combine.OperandRGB[term] = param;
349 struct gl_texture_unit *texUnit,
371 if (texUnit->Combine.ScaleShiftRGB == shift)
374 texUnit->Combine.ScaleShiftRGB = shift;
377 if (texUnit->Combine.ScaleShiftA == shift)
380 texUnit->Combine.ScaleShiftA = shift;
393 struct gl_texture_unit *texUnit;
406 texUnit = _mesa_get_current_tex_unit(ctx);
411 set_env_mode(ctx, texUnit, (GLenum) iparam0);
414 set_env_color(ctx, texUnit, param);
418 set_combiner_mode(ctx, texUnit, pname, (GLenum) iparam0);
428 set_combiner_source(ctx, texUnit, pname, (GLenum) iparam0);
438 set_combiner_operand(ctx, texUnit, pname, (GLenum) iparam0);
442 set_combiner_scale(ctx, texUnit, pname, param[0]);
461 texUnit->BumpTarget = iparam0;
471 if (texUnit->LodBias == param[0])
474 texUnit->LodBias = param[0];
573 get_texenvi(struct gl_context *ctx, const struct gl_texture_unit *texUnit,
578 return texUnit->EnvMode;
581 return texUnit->Combine.ModeRGB;
583 return texUnit->Combine.ModeA;
588 return texUnit->Combine.SourceRGB[rgb_idx];
592 return texUnit->Combine.SourceRGB[3];
602 return texUnit->Combine.SourceA[alpha_idx];
606 return texUnit->Combine.SourceA[3];
616 return texUnit->Combine.OperandRGB[op_rgb];
620 return texUnit->Combine.OperandRGB[3];
630 return texUnit->Combine.OperandA[op_alpha];
634 return texUnit->Combine.OperandA[3];
641 return 1 << texUnit->Combine.ScaleShiftRGB;
643 return 1 << texUnit->Combine.ScaleShiftA;
647 return texUnit->BumpTarget;
668 const struct gl_texture_unit *texUnit;
679 texUnit = _mesa_get_current_tex_unit(ctx);
686 COPY_4FV( params, texUnit->EnvColor );
688 COPY_4FV( params, texUnit->EnvColorUnclamped );
691 GLint val = get_texenvi(ctx, texUnit, pname);
699 *params = texUnit->LodBias;
732 const struct gl_texture_unit *texUnit;
743 texUnit = _mesa_get_current_tex_unit(ctx);
747 params[0] = FLOAT_TO_INT( texUnit->EnvColor[0] );
748 params[1] = FLOAT_TO_INT( texUnit->EnvColor[1] );
749 params[2] = FLOAT_TO_INT( texUnit->EnvColor[2] );
750 params[3] = FLOAT_TO_INT( texUnit->EnvColor[3] );
753 GLint val = get_texenvi(ctx, texUnit, pname);
761 *params = (GLint) texUnit->LodBias;
827 struct gl_texture_unit *texUnit;
836 texUnit = _mesa_get_current_tex_unit(ctx);
839 if (TEST_EQ_4V(param, texUnit->RotMatrix))
842 COPY_4FV(texUnit->RotMatrix, param);
859 const struct gl_texture_unit *texUnit;
869 texUnit = _mesa_get_current_tex_unit(ctx);
880 param[0] = FLOAT_TO_INT(texUnit->RotMatrix[0]);
881 param[1] = FLOAT_TO_INT(texUnit->RotMatrix[1]);
882 param[2] = FLOAT_TO_INT(texUnit->RotMatrix[2]);
883 param[3] = FLOAT_TO_INT(texUnit->RotMatrix[3]);
911 const struct gl_texture_unit *texUnit;
921 texUnit = _mesa_get_current_tex_unit(ctx);
930 param[0] = texUnit->RotMatrix[0];
931 param[1] = texUnit->RotMatrix[1];
932 param[2] = texUnit->RotMatrix[2];
933 param[3] = texUnit->RotMatrix[3];