pub fn clear_color_attachment(&self, index: usize, color: Color) {
        if index > MAX_COLOR_ATTACHMENTS || self.color_attachments[index].is_none() {
            panic!("Could not clear framebuffer color attachment. {} is not a valid color attachment index", index);
        }

        unsafe {
            use std::mem;
            gl::ClearBufferfv(gl::COLOR, index as GLint, mem::transmute(&color));
        }
    }
/// Clears the color attachment at the given index to the given color. This method panics if
/// the index is not that of a valid color attachment.
Clears the color attachment at the given index to the given color. This method panics if
the index is not that of a valid color attachment.
Clears the color attachment at the given index to the given color . This method panics if the index is not that of a valid color attachment .
pub fn clear_color_attachment(&self, index: usize, color: Color) {
        if index > MAX_COLOR_ATTACHMENTS || self.color_attachments[index].is_none() {
            panic!("Could not clear framebuffer color attachment. {} is not a valid color attachment index", index);
        }
        unsafe {
            use std::mem;
            gl::ClearBufferfv(gl::COLOR, index as GLint, mem::transmute(&color));
        }
    }
pub fn clear_color_attachment ( & self , index : usize , color : Color ) { if index > MAX_COLOR_ATTACHMENTS || self . color_attachments [ index ] . is_none ( ) { panic ! ( " " index ) ; } unsafe { use std :: mem ; gl :: ClearBufferfv ( gl :: COLOR , index as GLint , mem :: transmute ( & color ) ) ; } }
Clears the color attachment at the given index to the given color.
Clears the color attachment at the given index to the given color .
&self
index
usize
color
Color
&self
index
usize
color
Color