Struct three_d::core::texture::TextureCubeMap[][src]

pub struct TextureCubeMap { /* fields omitted */ }
Expand description

A texture that covers all 6 sides of a cube.

Implementations

Creates a new texture curbe map from the given cpu texture. The cpu texture data must contain 6 images all with the width and height specified in the cpu texture. The images are used in the following order; right, left, top, bottom, front, back.

Fills the cube map texture with the given data which should contain pixel data for 6 images in the following order; right, left, top, bottom, front, back.

Errors

Returns an error if the length of the data does not correspond to 6 images with the width, height and format specified at construction.

Trait Implementations

Executes the destructor for this type. Read more

Binds this texture cube to the current shader program.

The width of one of the sides of this texture.

The height of one of the sides of this texture.

The format of this texture.

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

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

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

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more