pub struct Asset { /* private fields */ }Implementations§
Source§impl Asset
impl Asset
pub fn new() -> Result<Self>
pub fn from_url(path: impl AsRef<Path>) -> Result<Self>
pub fn can_import_file_extension(path_extension: &str) -> bool
pub fn can_export_file_extension(path_extension: &str) -> bool
pub fn info(&self) -> Result<AssetInfo>
pub fn export_to_url(&self, path: impl AsRef<Path>) -> Result<()>
pub fn count(&self) -> usize
pub fn bounding_box(&self) -> BoundingBox
pub fn bounding_box_at_time(&self, time: f64) -> BoundingBox
pub fn url(&self) -> Option<String>
pub fn frame_interval(&self) -> f64
pub fn set_frame_interval(&self, value: f64)
pub fn start_time(&self) -> f64
pub fn set_start_time(&self, value: f64)
pub fn end_time(&self) -> f64
pub fn set_end_time(&self, value: f64)
pub fn up_axis(&self) -> [f32; 3]
pub fn set_up_axis(&self, axis: [f32; 3])
pub fn object_at(&self, index: usize) -> Option<Object>
pub fn object_at_path(&self, path: &str) -> Result<Option<Object>>
pub fn add_object(&self, object: &Object)
pub fn remove_object(&self, object: &Object)
pub fn mesh_at(&self, index: usize) -> Option<Mesh>
pub fn meshes(&self) -> Vec<Mesh>
pub fn load_textures(&self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Asset
impl RefUnwindSafe for Asset
impl !Send for Asset
impl !Sync for Asset
impl Unpin for Asset
impl UnsafeUnpin for Asset
impl UnwindSafe for Asset
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