assimp_sys

Struct AiScene

Source
#[repr(C)]
pub struct AiScene {
Show 14 fields pub flags: AiSceneFlags, pub root_node: *mut AiNode, pub num_meshes: c_uint, pub meshes: *mut *mut AiMesh, pub num_materials: c_uint, pub materials: *mut *mut AiMaterial, pub num_animations: c_uint, pub animations: *mut *mut AiAnimation, pub num_textures: c_uint, pub textures: *mut *mut AiTexture, pub num_lights: c_uint, pub lights: *mut *mut AiLight, pub num_cameras: c_uint, pub cameras: *mut *mut AiCamera, /* private fields */
}

Fields§

§flags: AiSceneFlags§root_node: *mut AiNode§num_meshes: c_uint§meshes: *mut *mut AiMesh§num_materials: c_uint§materials: *mut *mut AiMaterial§num_animations: c_uint§animations: *mut *mut AiAnimation§num_textures: c_uint§textures: *mut *mut AiTexture§num_lights: c_uint§lights: *mut *mut AiLight§num_cameras: c_uint§cameras: *mut *mut AiCamera

Implementations§

Source§

impl AiScene

Source

pub fn has_meshes(&self) -> bool

Source

pub fn has_materials(&self) -> bool

Source

pub fn has_lights(&self) -> bool

Source

pub fn has_textures(&self) -> bool

Source

pub fn has_cameras(&self) -> bool

Source

pub fn has_animations(&self) -> bool

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.