pub struct Texture(_);
Trait Implementations
impl Is<Texture> for Texture
impl Object for Texture
Auto Trait Implementations
impl RefUnwindSafe for Texture
impl Send for Texture
impl Sync for Texture
impl Unpin for Texture
impl UnwindSafe for Texture
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
fn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.
sourceimpl<O> TextureExt for O where
O: Is<Texture>,
impl<O> TextureExt for O where
O: Is<Texture>,
sourcefn allocate(&self) -> bool
fn allocate(&self) -> bool
Explicitly allocates the storage for the given self
which
allows you to be sure that there is enough memory for the
texture and if not then the error can be handled gracefully. Read more
sourcefn components(&self) -> TextureComponents
fn components(&self) -> TextureComponents
Queries what components the given self
stores internally as set
via Texture::set_components
. Read more
sourcefn data(&self, format: PixelFormat, rowstride: u32, data: &[u8]) -> i32
fn data(&self, format: PixelFormat, rowstride: u32, data: &[u8]) -> i32
Copies the pixel data from a cogl texture to system memory. Read more
sourcefn gl_texture(&self) -> (bool, u32, u32)
fn gl_texture(&self) -> (bool, u32, u32)
Queries the GL handles for a GPU side texture through its Texture
. Read more
sourcefn max_waste(&self) -> i32
fn max_waste(&self) -> i32
Queries the maximum wasted (unused) pixels in one dimension of a GPU side texture. Read more
sourcefn premultiplied(&self) -> bool
fn premultiplied(&self) -> bool
Queries the pre-multiplied alpha status for internally stored red,
green and blue components for the given self
as set by
Texture::set_premultiplied
. Read more
sourcefn is_sliced(&self) -> bool
fn is_sliced(&self) -> bool
Queries if a texture is sliced (stored as multiple GPU side tecture objects). Read more
sourcefn set_components(&self, components: TextureComponents)
fn set_components(&self, components: TextureComponents)
Affects the internal storage format for this texture by specifying what components will be required for sampling later. Read more
sourcefn set_data(
&self,
format: PixelFormat,
rowstride: i32,
data: &[u8],
level: i32
) -> bool
fn set_data(
&self,
format: PixelFormat,
rowstride: i32,
data: &[u8],
level: i32
) -> bool
self
a Texture
.
Sets all the pixels for a given mipmap level
by copying the pixel
data pointed to by the data
argument into the given self
. Read more
sourcefn set_premultiplied(&self, premultiplied: bool)
fn set_premultiplied(&self, premultiplied: bool)
Affects the internal storage format for this texture by specifying whether red, green and blue color components should be stored as pre-multiplied alpha values. Read more