Make egui_glium::painter::Painter::paint_job
pub (#100)
* Make `egui_glium::painter::Painter::paint_job` pub The background is: I'm working on an engine where I would like to draw the gui and the game to the same `glium::Frame`. Haven't found any other obvious, trivial solution. I could of course write my own integration, but I just think this makes sense to be public. * Make two other necessary functions public
This commit is contained in:
parent
d0c3bd0d8f
commit
b08870dcee
1 changed files with 3 additions and 3 deletions
|
@ -95,7 +95,7 @@ impl Painter {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn upload_egui_texture(
|
pub fn upload_egui_texture(
|
||||||
&mut self,
|
&mut self,
|
||||||
facade: &dyn glium::backend::Facade,
|
facade: &dyn glium::backend::Facade,
|
||||||
texture: &egui::Texture,
|
texture: &egui::Texture,
|
||||||
|
@ -154,7 +154,7 @@ impl Painter {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline(never)] // Easier profiling
|
#[inline(never)] // Easier profiling
|
||||||
fn paint_job(
|
pub fn paint_job(
|
||||||
&mut self,
|
&mut self,
|
||||||
target: &mut Frame,
|
target: &mut Frame,
|
||||||
display: &glium::Display,
|
display: &glium::Display,
|
||||||
|
@ -328,7 +328,7 @@ impl Painter {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn upload_pending_user_textures(&mut self, facade: &dyn glium::backend::Facade) {
|
pub fn upload_pending_user_textures(&mut self, facade: &dyn glium::backend::Facade) {
|
||||||
for user_texture in &mut self.user_textures {
|
for user_texture in &mut self.user_textures {
|
||||||
if let Some(user_texture) = user_texture {
|
if let Some(user_texture) = user_texture {
|
||||||
if user_texture.gl_texture.is_none() {
|
if user_texture.gl_texture.is_none() {
|
||||||
|
|
Loading…
Reference in a new issue