Lines Matching refs:mask
518 int mask = 0; in ggl_colorMask() local
519 if (a) mask |= 1 << GGLFormat::ALPHA; in ggl_colorMask()
520 if (r) mask |= 1 << GGLFormat::RED; in ggl_colorMask()
521 if (g) mask |= 1 << GGLFormat::GREEN; in ggl_colorMask()
522 if (b) mask |= 1 << GGLFormat::BLUE; in ggl_colorMask()
523 if (c->state.mask.color != mask) { in ggl_colorMask()
524 c->state.mask.color = mask; in ggl_colorMask()
532 if (c->state.mask.depth != flag?1:0) { in ggl_depthMask()
533 c->state.mask.depth = flag?1:0; in ggl_depthMask()
538 static void ggl_stencilMask(void* con, GGLuint mask) in ggl_stencilMask() argument
541 if (c->state.mask.stencil != mask) { in ggl_stencilMask()
542 c->state.mask.stencil = mask; in ggl_stencilMask()
716 const uint32_t mask = 1UL << tmu; in ggl_enable_texture2d() local
717 if (enable) c->state.enabled_tmu |= mask; in ggl_enable_texture2d()
718 else c->state.enabled_tmu &= ~mask; in ggl_enable_texture2d()
790 c->state.mask.color = 0xF; in ggl_init_context()
791 c->state.mask.depth = 0; in ggl_init_context()
792 c->state.mask.stencil = 0xFFFFFFFF; in ggl_init_context()