gl

Function clear_color

source
pub fn clear_color(red: f32, green: f32, blue: f32, alpha: f32)
Expand description

Specify clear values for the color buffers

NOTE: Calls the glClearColor` function.

ยงParameters

  • red - the red color (clamped between 0.0 and 1.0)
  • green - the green color (clamped between 0.0 and 1.0)
  • blue - the blue color (clamped between 0.0 and 1.0)
  • alpha - the alpha value (clamped between 0.0 and 1.0)