pub struct Texture {
pub texture_type: String,
pub file_name: String,
pub relative_file_name: Option<String>,
pub uv_translation: [f32; 2],
pub uv_scaling: [f32; 2],
pub uv_rotation: f32,
pub cropping: [i32; 4],
pub alpha_source: String,
/* private fields */
}Fields§
§texture_type: String§file_name: String§relative_file_name: Option<String>§uv_translation: [f32; 2]§uv_scaling: [f32; 2]§uv_rotation: f32§cropping: [i32; 4]§alpha_source: StringImplementations§
Source§impl Texture
impl Texture
pub fn inner(&self) -> &OwnedObject
pub fn into_inner(self) -> OwnedObject
Sourcepub fn get_media_video<'a>(
&'a self,
document: &'a OwnedDocument,
) -> Option<&'a Video>
pub fn get_media_video<'a>( &'a self, document: &'a OwnedDocument, ) -> Option<&'a Video>
Resolve incoming Video -> Texture OO links (Assimp Texture::Media).
Trait Implementations§
Source§impl TryFrom<OwnedObject> for Texture
impl TryFrom<OwnedObject> for Texture
Source§type Error = FbxTypeMismatch
type Error = FbxTypeMismatch
The type returned in the event of a conversion error.
impl StructuralPartialEq for Texture
Auto Trait Implementations§
impl Freeze for Texture
impl RefUnwindSafe for Texture
impl Send for Texture
impl Sync for Texture
impl Unpin for Texture
impl UnsafeUnpin for Texture
impl UnwindSafe for Texture
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