[−][src]Trait gfx_gtk::GlPostprocessCallback
Implement custom post-processing behaviour for the GlArea
CF
color format of the offline targetDF
depth format of the offline target
Provided methods
fn postprocess(
&mut self,
gfx_context: &mut GlGfxContext,
postprocess_context: &GlPostprocessContext,
_viewport: &Viewport,
render_screen: &GlFrameBufferTextureSrc<CF>,
post_target: &GlFrameBuffer<GtkTargetColorFormat>
) -> Result<GlRenderCallbackStatus>
&mut self,
gfx_context: &mut GlGfxContext,
postprocess_context: &GlPostprocessContext,
_viewport: &Viewport,
render_screen: &GlFrameBufferTextureSrc<CF>,
post_target: &GlFrameBuffer<GtkTargetColorFormat>
) -> Result<GlRenderCallbackStatus>
Invoked when the GlArea needs rendering (after an expose or queue_draw event)
gfx_context
Gfx device, factory, encoder attached to the current Gl contextviewport
size of the GlArearender_target
the offscreen target to render todepth_buffer
the offscreen depth buffer associated to therender_target
Returns:Ok(Continue)
will flush the command buffer and complete the frame by blitting to the GlAreaErr(_)
will stop the rendering of the requested frame By default, the post