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
fn create_egl_image(&mut self, attrs: &EglAttributes) -> Option<HwImage>
Creates EGL image from given parameters.
fn import_dmabuf(&mut self, attrs: &DmabufAttributes) -> Option<HwImage>
Imports dmabuf as EGL image.
fn destroy_hw_image(&mut self, image: HwImage) -> Result<(), ()>
Destroys given hardware image.