Function tetra::graphics::set_color_mask [−][src]
pub fn set_color_mask(
ctx: &mut Context,
red: bool,
green: bool,
blue: bool,
alpha: bool
)
Expand description
Sets which color components are drawn to the screen.
This is useful in conjunction with set_stencil_state
to draw to the stencil buffer without also drawing to the
visible pixels on screen.