Lines Matching refs:componentUsage

207 void STATE_APIENTRY crStateCombinerInputNV( GLenum stage, GLenum portion, GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage )
229 if( componentUsage != GL_RGB && componentUsage != GL_ALPHA && componentUsage != GL_BLUE )
231 crStateError(__LINE__, __FILE__, GL_INVALID_ENUM, "CombinerInputNV passed bogus componentUsage: 0x%x", componentUsage );
235 if(( componentUsage == GL_RGB && portion == GL_ALPHA )||( componentUsage == GL_BLUE && portion == GL_RGB ))
237 crStateError(__LINE__, __FILE__, GL_INVALID_OPERATION, "Incompatible portion and componentUsage passed to CombinerInputNV: portion = 0x%x, componentUsage = 0x%x", portion, componentUsage );
240 if( componentUsage == GL_ALPHA && input == GL_FOG )
242 crStateError(__LINE__, __FILE__, GL_INVALID_OPERATION, "CombinerInputNV can not have input of GL_FOG if componentUsage is GL_ALPHA" );
254 r->rgb[stage].aPortion = componentUsage;
259 r->rgb[stage].bPortion = componentUsage;
264 r->rgb[stage].cPortion = componentUsage;
269 r->rgb[stage].dPortion = componentUsage;
283 r->alpha[stage].aPortion = componentUsage;
288 r->alpha[stage].bPortion = componentUsage;
293 r->alpha[stage].cPortion = componentUsage;
298 r->alpha[stage].dPortion = componentUsage;
418 void STATE_APIENTRY crStateFinalCombinerInputNV( GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage )
435 if( componentUsage != GL_RGB && componentUsage != GL_ALPHA && componentUsage != GL_BLUE )
437 crStateError(__LINE__, __FILE__, GL_INVALID_ENUM, "FinalCombinerInputNV passed bogus componentUsage: 0x%x", componentUsage );
441 if( componentUsage == GL_ALPHA && ( input == GL_E_TIMES_F_NV || input == GL_SPARE0_PLUS_SECONDARY_COLOR_NV ))
443 crStateError(__LINE__, __FILE__, GL_INVALID_OPERATION, "FinalCombinerInputNV does not allow componentUsage of ALPHA when input is E_TIMES_F or SPARE0_PLUS_SECONDARY_COLOR" );
452 r->aPortion = componentUsage;
457 r->bPortion = componentUsage;
462 r->cPortion = componentUsage;
467 r->dPortion = componentUsage;
472 r->ePortion = componentUsage;
477 r->fPortion = componentUsage;
480 if( componentUsage != GL_ALPHA )
482 crStateError( __LINE__, __FILE__, GL_INVALID_OPERATION, "FinalCombinerInputNV can not have variable G when componentUsage is RGB or BLUE" );
487 r->gPortion = componentUsage;