Trait cognitive_qualia::traits::GraphicsManagement [] [src]

pub trait GraphicsManagement {
    fn create_egl_image(&mut self, attrs: &EglAttributes) -> Option<HwImage>;
    fn import_dmabuf(&mut self, attrs: &DmabufAttributes) -> Option<HwImage>;
    fn destroy_hw_image(&mut self, image: HwImage) -> Result<(), ()>;
}

Trait every graphics manager should implement.

Graphics manager is peace of code abstracting hardware image creation.

Required Methods

Creates EGL image from given parameters.

Imports dmabuf as EGL image.

Destroys given hardware image.

Implementors