pub trait GLFramebufferExtManual: Sealed + IsA<GLFramebuffer> + 'static {
    // Provided method
    fn draw_to_texture<F: FnOnce()>(&self, mem: &mut GLMemoryRef, func: F) { ... }
}

Provided Methods§

source

fn draw_to_texture<F: FnOnce()>(&self, mem: &mut GLMemoryRef, func: F)

Perform the steps necessary to have the output of a glDraw* command in func update the contents of mem.

Note: this function does not map mem for writing with OpenGL and that must be done manually by the caller using any of the mapping functions such as [gst::Memory::map()][crate::gst::Memory::map()] with the map flags GST_MAP_WRITE | GST_MAP_GL.

Must be called with the same OpenGL context current that self was created with.

§mem

the GLMemory to draw to

§func

the function to run

§Returns

the result of executing func

Object Safety§

This trait is not object safe.

Implementors§