pub fn paint_and_update_textures(
        &mut self,
        screen_size_px: [u32; 2],
        pixels_per_point: f32,
        clipped_primitives: &[egui::ClippedPrimitive],
        textures_delta: &egui::TexturesDelta,
    ) {
        crate::profile_function!();
        for (id, image_delta) in &textures_delta.set {
            self.set_texture(*id, image_delta);
        }

        self.paint_primitives(screen_size_px, pixels_per_point, clipped_primitives);

        for &id in &textures_delta.free {
            self.free_texture(id);
        }
    }
/// You are expected to have cleared the color buffer before calling this.
You are expected to have cleared the color buffer before calling this.
You are expected to have cleared the color buffer before calling this .
pub fn paint_and_update_textures(
        &mut self,
        screen_size_px: [u32; 2],
        pixels_per_point: f32,
        clipped_primitives: &[egui::ClippedPrimitive],
        textures_delta: &egui::TexturesDelta,
    ) {
        crate::profile_function!();
        for (id, image_delta) in &textures_delta.set {
            self.set_texture(*id, image_delta);
        }
        self.paint_primitives(screen_size_px, pixels_per_point, clipped_primitives);
        for &id in &textures_delta.free {
            self.free_texture(id);
        }
    }
pub fn paint_and_update_textures ( & mut self , screen_size_px : [ u32 ; 2 ] , pixels_per_point : f32 , clipped_primitives : & [ egui :: ClippedPrimitive ] , textures_delta : & egui :: TexturesDelta , ) { crate :: profile_function ! ( ) ; for ( id , image_delta ) in & textures_delta . set { self . set_texture ( * id , image_delta ) ; } self . paint_primitives ( screen_size_px , pixels_per_point , clipped_primitives ) ; for & id in & textures_delta . free { self . free_texture ( id ) ; } }
You are expected to have cleared the color buffer before calling this.
You are expected to have cleared the color buffer before calling this .
&mut self
screen_size_px
[u32; 2]
pixels_per_point
f32
clipped_primitives
&[egui::ClippedPrimitive]
textures_delta
&egui::TexturesDelta
&mut self
screen_size_px
[u32; 2]
pixels_per_point
f32
clipped_primitives
&[egui::ClippedPrimitive]
textures_delta
&egui::TexturesDelta