[−][src]Trait gfx_gtk::GlPostprocessCallback
Implement custom post-processing behaviour for the GlArea
CFcolor format of the offline targetDFdepth 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_contextGfx device, factory, encoder attached to the current Gl contextviewportsize of the GlArearender_targetthe offscreen target to render todepth_bufferthe offscreen depth buffer associated to therender_targetReturns: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