pub struct CubeTextureLoader { /* private fields */ }Expand description
three.js’ CubeTextureLoader.
Implementations§
Source§impl CubeTextureLoader
impl CubeTextureLoader
Sourcepub fn load<P: AsRef<Path>>(&self, urls: [P; 6]) -> Result<CubeTexture, Error>
pub fn load<P: AsRef<Path>>(&self, urls: [P; 6]) -> Result<CubeTexture, Error>
new CubeTextureLoader().load( urls ) — the loader sets
texture.colorSpace = SRGBColorSpace.
Sourcepub fn load_images<P: AsRef<Path>>(
&self,
urls: [P; 6],
) -> Result<Vec<Image>, Error>
pub fn load_images<P: AsRef<Path>>( &self, urls: [P; 6], ) -> Result<Vec<Image>, Error>
The six decoded faces on their own — what a hand-authored mip level of
a CubeTexture is made of. On the page each level is a whole
CubeTexture and only its images is ever read, so the port skips the
texture and keeps the faces.
Trait Implementations§
Source§impl Clone for CubeTextureLoader
impl Clone for CubeTextureLoader
Source§impl Debug for CubeTextureLoader
impl Debug for CubeTextureLoader
Auto Trait Implementations§
impl Freeze for CubeTextureLoader
impl RefUnwindSafe for CubeTextureLoader
impl Send for CubeTextureLoader
impl Sync for CubeTextureLoader
impl Unpin for CubeTextureLoader
impl UnsafeUnpin for CubeTextureLoader
impl UnwindSafe for CubeTextureLoader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more