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
Required Methods
Provided Methods
fn to_texture(&self) -> Result<Texture, Error>
fn to_texture(&self) -> Result<Texture, Error>
Convert to texture