Struct me3_framework::overlay::output::FullOutput
source · [−]pub struct FullOutput {
pub platform_output: PlatformOutput,
pub repaint_after: Duration,
pub textures_delta: TexturesDelta,
pub shapes: Vec<ClippedShape, Global>,
}
Expand description
What egui emits each frame from crate::Context::run
.
The backend should use this.
Fields
platform_output: PlatformOutput
Non-rendering related output.
repaint_after: Duration
If Duration::is_zero()
, egui is requesting immediate repaint (i.e. on the next frame).
This happens for instance when there is an animation, or if a user has called Context::request_repaint()
.
If Duration
is greater than zero, egui wants to be repainted at or before the specified
duration elapses. when in reactive mode, egui spends forever waiting for input and only then,
will it repaint itself. this can be used to make sure that backend will only wait for a
specified amount of time, and repaint egui without any new input.
textures_delta: TexturesDelta
Texture changes since last frame (including the font texture).
The backend needs to apply crate::TexturesDelta::set
before painting,
and free any texture in crate::TexturesDelta::free
after painting.
shapes: Vec<ClippedShape, Global>
What to paint.
You can use crate::Context::tessellate
to turn this into triangles.
Implementations
sourceimpl FullOutput
impl FullOutput
sourcepub fn append(&mut self, newer: FullOutput)
pub fn append(&mut self, newer: FullOutput)
Add on new output.
Trait Implementations
sourceimpl Clone for FullOutput
impl Clone for FullOutput
sourcefn clone(&self) -> FullOutput
fn clone(&self) -> FullOutput
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more