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