pub struct Rgba;Expand description
Four-channel red, green, blue with alpha channel
Trait Implementations§
Source§impl Ord for Rgba
impl Ord for Rgba
Source§impl PartialOrd for Rgba
impl PartialOrd for Rgba
Source§impl ToTexture<f32, Rgba> for Image<f32, Rgba>
impl ToTexture<f32, Rgba> for Image<f32, Rgba>
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
ImageTextureSource§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, Rgba> for Image<i16, Rgba>
impl ToTexture<i16, Rgba> for Image<i16, Rgba>
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
ImageTextureSource§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, Rgba> for Image<u16, Rgba>
impl ToTexture<u16, Rgba> for Image<u16, Rgba>
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
ImageTextureSource§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, Rgba> for Image<u8, Rgba>
impl ToTexture<u8, Rgba> for Image<u8, Rgba>
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
ImageTextureSource§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
impl Copy for Rgba
impl Eq for Rgba
impl Send for Rgba
impl StructuralPartialEq for Rgba
impl Sync for Rgba
Auto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more