pub fn paint_jobs(
        &mut self,
        display: &glium::Display,
        pixels_per_point: f32,
        clear_color: egui::Rgba,
        jobs: PaintJobs,
        egui_texture: &egui::Texture,
    ) {
        self.upload_egui_texture(display, egui_texture);
        self.upload_pending_user_textures(display);

        let mut target = display.draw();
        // Verified to be gamma-correct.
        target.clear_color(
            clear_color[0],
            clear_color[1],
            clear_color[2],
            clear_color[3],
        );
        for (clip_rect, triangles) in jobs {
            self.paint_job(
                &mut target,
                display,
                pixels_per_point,
                clip_rect,
                &triangles,
            )
        }
        target.finish().unwrap();
    }
/// Main entry-point for painting a frame
Main entry-point for painting a frame
Main entry - point for painting a frame
pub fn paint_jobs(
        &mut self,
        display: &glium::Display,
        pixels_per_point: f32,
        clear_color: egui::Rgba,
        jobs: PaintJobs,
        egui_texture: &egui::Texture,
    ) {
        self.upload_egui_texture(display, egui_texture);
        self.upload_pending_user_textures(display);
        let mut target = display.draw();
        // Verified to be gamma-correct.
        target.clear_color(
            clear_color[0],
            clear_color[1],
            clear_color[2],
            clear_color[3],
        );
        for (clip_rect, triangles) in jobs {
            self.paint_job(
                &mut target,
                display,
                pixels_per_point,
                clip_rect,
                &triangles,
            )
        }
        target.finish().unwrap();
    }
pub fn paint_jobs ( & mut self , display : & glium :: Display , pixels_per_point : f32 , clear_color : egui :: Rgba , jobs : PaintJobs , egui_texture : & egui :: Texture , ) { self . upload_egui_texture ( display , egui_texture ) ; self . upload_pending_user_textures ( display ) ; let mut target = display . draw ( ) ; // Verified to be gamma-correct. target . clear_color ( clear_color [ 0 ] , clear_color [ 1 ] , clear_color [ 2 ] , clear_color [ 3 ] , ) ; for ( clip_rect , triangles ) in jobs { self . paint_job ( & mut target , display , pixels_per_point , clip_rect , & triangles , ) } target . finish ( ) . unwrap ( ) ; }
Main entry-point for painting a frame
Main entry - point for painting a frame
&mut self
display
&glium::Display
pixels_per_point
f32
clear_color
egui::Rgba
jobs
PaintJobs
egui_texture
&egui::Texture
&mut self
display
&glium::Display
pixels_per_point
f32
clear_color
egui::Rgba
jobs
PaintJobs
egui_texture
&egui::Texture