Skip to main content

RenderingBufferAccess

Trait RenderingBufferAccess 

Source
pub trait RenderingBufferAccess {
    // Required methods
    fn width(&self) -> u32;
    fn height(&self) -> u32;
    fn stride_abs(&self) -> u32;
    unsafe fn row_ptr_const(&self, y: i32) -> *const u8;
}
Expand description

Common interface for rendering buffer access (used by copy_from).

Required Methods§

Source

fn width(&self) -> u32

Source

fn height(&self) -> u32

Source

fn stride_abs(&self) -> u32

Source

unsafe fn row_ptr_const(&self, y: i32) -> *const u8

§Safety

y must be in [0, height).

Implementors§