Interface Model
- All Known Implementing Classes:
EmptyModel,SimpleModel,SingleMeshModel
public interface Model
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionorg.joml.Vector4fcGet a vec4 representing this model's bounding sphere in the format (x, y, z, radius).meshes()Get a list of all meshes in this model.
-
Method Details
-
meshes
List<Model.ConfiguredMesh> meshes()Get a list of all meshes in this model.The contents of the returned list will be queried, but never modified.
Meshes will be rendered in the order they appear in this list. See
InstancerProvider.instancer(InstanceType, Model, int)for a complete explanation- Returns:
- A list of meshes.
-
boundingSphere
org.joml.Vector4fc boundingSphere()Get a vec4 representing this model's bounding sphere in the format (x, y, z, radius). It should encompass all meshes' bounding spheres.- Returns:
- A vec4 view.
-