Interface Model

All Known Implementing Classes:
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).
    void
     
    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, though no render order guarantees are made for meshes between different models.

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

      void delete()