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
pub fn new<T: TextureDataType>(
context: &Context,
cpu_texture: &CPUTexture<T>
) -> ThreeDResult<TextureCubeMap>
pub fn new<T: TextureDataType>(
context: &Context,
cpu_texture: &CPUTexture<T>
) -> ThreeDResult<TextureCubeMap>
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
Auto Trait Implementations
impl !RefUnwindSafe for TextureCubeMap
impl !Send for TextureCubeMap
impl !Sync for TextureCubeMap
impl Unpin for TextureCubeMap
impl !UnwindSafe for TextureCubeMap
Blanket Implementations
Mutably borrows from an owned value. Read more
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