logo
pub struct Texture(_);

Trait Implementations

Converts this type into a shared reference of the (usually inferred) input type.

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Typed getter

Inspect the context.

Inspect the context.

Inspect the context.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Convert into color

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Sets value as a parameter of self.

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

Queries what components the given self stores internally as set via Texture::set_components. Read more

Copies the pixel data from a cogl texture to system memory. Read more

Queries the GL handles for a GPU side texture through its Texture. Read more

Queries the height of a cogl texture. Read more

Queries the maximum wasted (unused) pixels in one dimension of a GPU side texture. Read more

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

Queries the width of a cogl texture. Read more

Queries if a texture is sliced (stored as multiple GPU side tecture objects). Read more

Affects the internal storage format for this texture by specifying what components will be required for sampling later. Read more

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

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

Sets the pixels in a rectangular subregion of self from an in-memory buffer containing pixel data. Read more

Copies a specified source region from bitmap to the position (src_x, src_y) of the given destination texture handle. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.