devotee_backend

Trait Converter

source
pub trait Converter {
    type Data;

    // Required method
    fn convert(&self, x: usize, y: usize, data: Self::Data) -> u32;
}
Expand description

Converter from the Data value to 0xff_rr_gg_bb format.

Required Associated Types§

source

type Data

Data to be converted from.

Required Methods§

source

fn convert(&self, x: usize, y: usize, data: Self::Data) -> u32

Convert passed data into 0xff_rr_gg_bb value. x and y values represent pixel position in the surface, not in the target.

Implementors§