Lines Matching defs:component

218         // (or no alpha component in the texture).
457 int component,
461 comment(comments[component]);
465 const int dst_component_size = pixel.component_size(component);
469 parts, component, scratches, regs);
471 if (mInfo[component].inDest) {
474 build_blending( temp, mDstPixel, component, scratches );
476 // downshift component and rebuild pixel...
477 downshift(pixel, component, temp, parts.dither);
485 int component,
489 const uint32_t component_mask = 1<<component;
492 int fs = component==GGLFormat::ALPHA ? mBlendSrcA : mBlendSrc;
493 int fd = component==GGLFormat::ALPHA ? mBlendDstA : mBlendDst;
494 if (fs==GGL_SRC_ALPHA_SATURATE && component==GGLFormat::ALPHA) {
509 (parts.texel[i].component_size(component) < dst_size)) {
514 // do we need to extract this component?
516 const int blend_needs_alpha_source = (component==GGLFormat::ALPHA) &&
518 int need_extract = mInfo[component].needed;
519 if (mInfo[component].inDest)
524 need_extract |= mInfo[component].smooth;
525 need_extract |= mInfo[component].fog;
535 build_iterated_color(fragment, parts, component, regs);
538 build_texture_environment(fragment, parts, component, regs);
548 if ((component==GGLFormat::ALPHA) &&
549 (mInfo[component].needed || fragment.size()<dst_size))
595 build_fog( fragment, component, regs );
599 if (mInfo[component].inDest) {
601 // we just select the right component
603 // component wasn't replaced, so use it!
604 temp = component_t(parts.iterated, component);
610 temp = component_t(parts.texel[i], component);
964 // clear masked component of source