Skip to main content

InstancedPropGeometry

Trait InstancedPropGeometry 

Source
pub trait InstancedPropGeometry {
    // Required method
    fn instance_model_matrix(&self, idx: usize) -> Option<[[f32; 4]; 4]>;
}
Expand description

Per-instance model matrices for an InstancedProp.

Required Methods§

Source

fn instance_model_matrix(&self, idx: usize) -> Option<[[f32; 4]; 4]>

Column-major model matrix for the i-th instance, or None when the index is past the instance list.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§