RSurface

Type Alias RSurface 

Source
pub type RSurface<'a> = Surface<'a, 1>;

Aliased Type§

pub struct RSurface<'a> {
    pub data: &'a [u8],
    pub width: u32,
    pub height: u32,
    pub stride: u32,
}

Fields§

§data: &'a [u8]

The pixel data for the image. The data does not need to be tightly packed, but if it isn’t, stride must be different from width * 4.

Expected to be at least stride * height.

§width: u32

The width of the image in texels.

§height: u32

The height of the image in texels.

§stride: u32

The stride between the rows of the image, in bytes. If data is tightly packed, this is expected to be width * 4.