pub struct Rgb;
Expand description
Three-channel red, green, blue
Trait Implementations§
source§impl Ord for Rgb
impl Ord for Rgb
source§impl PartialOrd<Rgb> for Rgb
impl PartialOrd<Rgb> for Rgb
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl ToTexture<f32, Rgb> for Image<f32, Rgb>
impl ToTexture<f32, Rgb> for Image<f32, Rgb>
source§fn create_image_texture(&self, gl: &Context) -> Result<ImageTexture<T, C>, Error>
fn create_image_texture(&self, gl: &Context) -> Result<ImageTexture<T, C>, Error>
Create
ImageTexture
source§fn draw_image_texture(
&self,
gl: &Context,
image_texture: &ImageTexture<T, C>,
display_size: Size,
offset: Point
) -> Result<(), Error>
fn draw_image_texture( &self, gl: &Context, image_texture: &ImageTexture<T, C>, display_size: Size, offset: Point ) -> Result<(), Error>
Draw the texture on the framebuffer
source§impl ToTexture<i16, Rgb> for Image<i16, Rgb>
impl ToTexture<i16, Rgb> for Image<i16, Rgb>
source§fn create_image_texture(&self, gl: &Context) -> Result<ImageTexture<T, C>, Error>
fn create_image_texture(&self, gl: &Context) -> Result<ImageTexture<T, C>, Error>
Create
ImageTexture
source§fn draw_image_texture(
&self,
gl: &Context,
image_texture: &ImageTexture<T, C>,
display_size: Size,
offset: Point
) -> Result<(), Error>
fn draw_image_texture( &self, gl: &Context, image_texture: &ImageTexture<T, C>, display_size: Size, offset: Point ) -> Result<(), Error>
Draw the texture on the framebuffer
source§impl ToTexture<u16, Rgb> for Image<u16, Rgb>
impl ToTexture<u16, Rgb> for Image<u16, Rgb>
source§fn create_image_texture(&self, gl: &Context) -> Result<ImageTexture<T, C>, Error>
fn create_image_texture(&self, gl: &Context) -> Result<ImageTexture<T, C>, Error>
Create
ImageTexture
source§fn draw_image_texture(
&self,
gl: &Context,
image_texture: &ImageTexture<T, C>,
display_size: Size,
offset: Point
) -> Result<(), Error>
fn draw_image_texture( &self, gl: &Context, image_texture: &ImageTexture<T, C>, display_size: Size, offset: Point ) -> Result<(), Error>
Draw the texture on the framebuffer
source§impl ToTexture<u8, Rgb> for Image<u8, Rgb>
impl ToTexture<u8, Rgb> for Image<u8, Rgb>
source§fn create_image_texture(&self, gl: &Context) -> Result<ImageTexture<T, C>, Error>
fn create_image_texture(&self, gl: &Context) -> Result<ImageTexture<T, C>, Error>
Create
ImageTexture
source§fn draw_image_texture(
&self,
gl: &Context,
image_texture: &ImageTexture<T, C>,
display_size: Size,
offset: Point
) -> Result<(), Error>
fn draw_image_texture( &self, gl: &Context, image_texture: &ImageTexture<T, C>, display_size: Size, offset: Point ) -> Result<(), Error>
Draw the texture on the framebuffer