Interface Model

All Known Implementing Classes:
EmptyModel, SimpleModel, SingleMeshModel

public interface Model
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final record 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.joml.Vector4fc
    Get a vec4 representing this model's bounding sphere in the format (x, y, z, radius).
    Get a list of all meshes in this model.
  • Method Details

    • 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.