pub trait ToTexture<T: Type, C: Color> {
    const COLOR: GLuint;
    const KIND: GLuint;

    fn get_meta(&self) -> &Meta<T, C>;
    fn get_data(&self) -> &[T]Notable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[u8];

    fn to_texture(&self) -> Result<Texture, Error> { ... }
}
Expand description

ToTexture is defined for image types that can be converted to OpenGL textures

Required Associated Constants

OpenGL color

OpenGL type

Required Methods

Get metadata

Get data buffer

Provided Methods

Convert to texture

Implementors