Home | History | Annotate | Download | only in main

Lines Matching refs:Combine

47  * Default texture combine environment state.  This is used to initialize
92 dst->Texture.Unit[u].Combine = src->Texture.Unit[u].Combine;
127 printf(" GL_COMBINE_RGB = %s\n", _mesa_lookup_enum_by_nr(texUnit->Combine.ModeRGB));
128 printf(" GL_COMBINE_ALPHA = %s\n", _mesa_lookup_enum_by_nr(texUnit->Combine.ModeA));
129 printf(" GL_SOURCE0_RGB = %s\n", _mesa_lookup_enum_by_nr(texUnit->Combine.SourceRGB[0]));
130 printf(" GL_SOURCE1_RGB = %s\n", _mesa_lookup_enum_by_nr(texUnit->Combine.SourceRGB[1]));
131 printf(" GL_SOURCE2_RGB = %s\n", _mesa_lookup_enum_by_nr(texUnit->Combine.SourceRGB[2]));
132 printf(" GL_SOURCE0_ALPHA = %s\n", _mesa_lookup_enum_by_nr(texUnit->Combine.SourceA[0]));
133 printf(" GL_SOURCE1_ALPHA = %s\n", _mesa_lookup_enum_by_nr(texUnit->Combine.SourceA[1]));
134 printf(" GL_SOURCE2_ALPHA = %s\n", _mesa_lookup_enum_by_nr(texUnit->Combine.SourceA[2]));
135 printf(" GL_OPERAND0_RGB = %s\n", _mesa_lookup_enum_by_nr(texUnit->Combine.OperandRGB[0]));
136 printf(" GL_OPERAND1_RGB = %s\n", _mesa_lookup_enum_by_nr(texUnit->Combine.OperandRGB[1]));
137 printf(" GL_OPERAND2_RGB = %s\n", _mesa_lookup_enum_by_nr(texUnit->Combine.OperandRGB[2]));
138 printf(" GL_OPERAND0_ALPHA = %s\n", _mesa_lookup_enum_by_nr(texUnit->Combine.OperandA[0]));
139 printf(" GL_OPERAND1_ALPHA = %s\n", _mesa_lookup_enum_by_nr(texUnit->Combine.OperandA[1]));
140 printf(" GL_OPERAND2_ALPHA = %s\n", _mesa_lookup_enum_by_nr(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);
386 * Examine texture unit's combine/env state to update derived state.
391 struct gl_tex_env_combine_state *combine;
403 texUnit->_CurrentCombine = & texUnit->Combine;
416 combine = texUnit->_CurrentCombine;
419 switch (combine->ModeRGB) {
421 combine->_NumArgsRGB = 1;
426 combine->_NumArgsRGB = 4;
428 combine->_NumArgsRGB = 2;
436 combine->_NumArgsRGB = 2;
442 combine->_NumArgsRGB = 3;
446 combine->_NumArgsRGB = 0;
449 combine->_NumArgsRGB = 0;
450 _mesa_problem(ctx, "invalid RGB combine mode in update_texture_state");
455 switch (combine->ModeA) {
457 combine->_NumArgsA = 1;
462 combine->_NumArgsA = 4;
464 combine->_NumArgsA = 2;
468 combine->_NumArgsA = 2;
474 combine->_NumArgsA = 3;
477 combine->_NumArgsA = 0;
478 _mesa_problem(ctx, "invalid Alpha combine mode in update_texture_state");
756 texUnit->Combine = default_combine_state;