Implementations
sourceimpl Model<ColorMaterial>
impl Model<ColorMaterial>
sourcepub fn new(context: &Context, cpu_mesh: &CpuMesh) -> ThreeDResult<Self>
pub fn new(context: &Context, cpu_mesh: &CpuMesh) -> ThreeDResult<Self>
Creates a new 3D model with a Mesh as geometry and a default ColorMaterial.
sourceimpl<M: Material> Model<M>
impl<M: Material> Model<M>
sourcepub fn new_with_material(
context: &Context,
cpu_mesh: &CpuMesh,
material: M
) -> ThreeDResult<Self>
pub fn new_with_material(
context: &Context,
cpu_mesh: &CpuMesh,
material: M
) -> ThreeDResult<Self>
Creates a new 3D model with a Mesh as geometry and the given material.