Function three_d::io::cube_image_from_bytes [−][src]
pub fn cube_image_from_bytes(
right_bytes: &[u8],
left_bytes: &[u8],
top_bytes: &[u8],
bottom_bytes: &[u8],
front_bytes: &[u8],
back_bytes: &[u8]
) -> ThreeDResult<CPUTextureCube<u8>>
Expand description
Deserialize the 6 images given as byte arrays into a CPUTextureCube using the image crate. The CPUTextureCube can then be used to create a TextureCubeMap.