Home | History | Annotate | Download | only in main

Lines Matching refs:Combine

46  * Default texture combine environment state.  This is used to initialize
91 dst->Texture.Unit[u].Combine = src->Texture.Unit[u].Combine;
127 printf(" GL_COMBINE_RGB = %s\n", _mesa_enum_to_string(texUnit->Combine.ModeRGB));
128 printf(" GL_COMBINE_ALPHA = %s\n", _mesa_enum_to_string(texUnit->Combine.ModeA));
129 printf(" GL_SOURCE0_RGB = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceRGB[0]));
130 printf(" GL_SOURCE1_RGB = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceRGB[1]));
131 printf(" GL_SOURCE2_RGB = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceRGB[2]));
132 printf(" GL_SOURCE0_ALPHA = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceA[0]));
133 printf(" GL_SOURCE1_ALPHA = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceA[1]));
134 printf(" GL_SOURCE2_ALPHA = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceA[2]));
135 printf(" GL_OPERAND0_RGB = %s\n", _mesa_enum_to_string(texUnit->Combine.OperandRGB[0]));
136 printf(" GL_OPERAND1_RGB = %s\n", _mesa_enum_to_string(texUnit->Combine.OperandRGB[1]));
137 printf(" GL_OPERAND2_RGB = %s\n", _mesa_enum_to_string(texUnit->Combine.OperandRGB[2]));
138 printf(" GL_OPERAND0_ALPHA = %s\n", _mesa_enum_to_string(texUnit->Combine.OperandA[0]));
139 printf(" GL_OPERAND1_ALPHA = %s\n", _mesa_enum_to_string(texUnit->Combine.OperandA[1]));
140 printf(" GL_OPERAND2_ALPHA = %s\n", _mesa_enum_to_string(texUnit->Combine.OperandA[2]));
141 printf(" GL_RGB_SCALE = %d\n", 1 << texUnit->Combine.ScaleShiftRGB);
142 printf(" GL_ALPHA_SCALE = %d\n", 1 << texUnit->Combine.ScaleShiftA);
379 * Examine texture unit's combine/env state to update derived state.
384 struct gl_tex_env_combine_state *combine;
396 texUnit->_CurrentCombine = & texUnit->Combine;
409 combine = texUnit->_CurrentCombine;
412 switch (combine->ModeRGB) {
414 combine->_NumArgsRGB = 1;
419 combine->_NumArgsRGB = 4;
421 combine->_NumArgsRGB = 2;
429 combine->_NumArgsRGB = 2;
435 combine->_NumArgsRGB = 3;
438 combine->_NumArgsRGB = 0;
439 _mesa_problem(ctx, "invalid RGB combine mode in update_texture_state");
444 switch (combine->ModeA) {
446 combine->_NumArgsA = 1;
451 combine->_NumArgsA = 4;
453 combine->_NumArgsA = 2;
457 combine->_NumArgsA = 2;
463 combine->_NumArgsA = 3;
466 combine->_NumArgsA = 0;
467 _mesa_problem(ctx, "invalid Alpha combine mode in update_texture_state");
836 texUnit->Combine = default_combine_state;