pub struct Scene<'a>(/* private fields */);
Expand description
The Scene
type is the root container for all imported scene data.
Implementations§
Source§impl<'a> Scene<'a>
impl<'a> Scene<'a>
Sourcepub fn is_incomplete(&self) -> bool
pub fn is_incomplete(&self) -> bool
Returns true if the imported scene is not complete.
Sourcepub fn is_validated(&self) -> bool
pub fn is_validated(&self) -> bool
Returns true if the imported scene was successfully validated by the
validate_data_structure
post-process step.
Sourcepub fn has_validation_warning(&self) -> bool
pub fn has_validation_warning(&self) -> bool
Returns true if any warnings were generated by the validate_data_structure
post-process step. The details of the warnings are written to the output log.
Sourcepub fn is_non_verbose_format(&self) -> bool
pub fn is_non_verbose_format(&self) -> bool
Returns true if the join_identical_vertices
post-process step was run.
Sourcepub fn is_terrain(&self) -> bool
pub fn is_terrain(&self) -> bool
Returns true if the imported mesh contained height-map terrain data.
Sourcepub fn num_meshes(&self) -> u32
pub fn num_meshes(&self) -> u32
Returns the number of meshes in the scene.
Sourcepub fn mesh_iter(&self) -> MeshIter<'_> ⓘ
pub fn mesh_iter(&self) -> MeshIter<'_> ⓘ
Returns an iterator over all the meshes in the scene.
Sourcepub fn num_materials(&self) -> u32
pub fn num_materials(&self) -> u32
Returns the number of materials in the scene.
Sourcepub fn material_iter(&self) -> MaterialIter<'_> ⓘ
pub fn material_iter(&self) -> MaterialIter<'_> ⓘ
Returns an iterator over all the materials in the scene.
Sourcepub fn num_animations(&self) -> u32
pub fn num_animations(&self) -> u32
Returns the number of animations in the scene.
Sourcepub fn animation_iter(&self) -> AnimationIter<'_> ⓘ
pub fn animation_iter(&self) -> AnimationIter<'_> ⓘ
Returns an iterator over all the animations in the scene.
Sourcepub fn animation(&self, id: usize) -> Option<Animation<'_>>
pub fn animation(&self, id: usize) -> Option<Animation<'_>>
Return an individual animation from the scene.
Sourcepub fn num_textures(&self) -> u32
pub fn num_textures(&self) -> u32
Returns the number of animations in the scene.
Sourcepub fn texture_iter(&self) -> TextureIter<'_> ⓘ
pub fn texture_iter(&self) -> TextureIter<'_> ⓘ
Returns an iterator over all the textures in the scene.
Sourcepub fn num_lights(&self) -> u32
pub fn num_lights(&self) -> u32
Returns the number of lights in the scene.
Sourcepub fn light_iter(&self) -> LightIter<'_> ⓘ
pub fn light_iter(&self) -> LightIter<'_> ⓘ
Returns an iterator over all the lights in the scene.
Sourcepub fn num_cameras(&self) -> u32
pub fn num_cameras(&self) -> u32
Returns the number of cameras in the scene.
Sourcepub fn camera_iter(&self) -> CameraIter<'_> ⓘ
pub fn camera_iter(&self) -> CameraIter<'_> ⓘ
Returns an iterator over all the cameras in the scene.