pub struct Srgba;
Expand description
Log space, four-channel red, green, blue with alpha channel
Trait Implementations§
source§impl Ord for Srgba
impl Ord for Srgba
source§impl PartialEq<Srgba> for Srgba
impl PartialEq<Srgba> for Srgba
source§impl PartialOrd<Srgba> for Srgba
impl PartialOrd<Srgba> for Srgba
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, Srgba> for Image<f32, Srgba>
impl ToTexture<f32, Srgba> for Image<f32, Srgba>
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, Srgba> for Image<i16, Srgba>
impl ToTexture<i16, Srgba> for Image<i16, Srgba>
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, Srgba> for Image<u16, Srgba>
impl ToTexture<u16, Srgba> for Image<u16, Srgba>
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, Srgba> for Image<u8, Srgba>
impl ToTexture<u8, Srgba> for Image<u8, Srgba>
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