Class Mesh


  • public class Mesh
    extends Object
    Class that represent a simple model, wich has only one material and consists of only one mesh
    Author:
    Darius Dinger
    • Constructor Detail

      • Mesh

        public Mesh​(VertexArrayObject vao,
                    IndexBuffer indexBuffer,
                    com.bulletphysics.collision.shapes.CollisionShape shape)
        Creating new model and set the material to default material
        Parameters:
        vao - Models VertexArrayObject with the vertices
        indexBuffer - Models IndeBuffer with the indices, that connecting the vertices
        shape - Collision shape of the model
      • Mesh

        public Mesh​(VertexArrayObject vao,
                    IndexBuffer indexBuffer,
                    Material material,
                    com.bulletphysics.collision.shapes.CollisionShape shape)
        Creating new model with all parameters
        Parameters:
        vao - Models VertexArrayObject with the vertices
        indexBuffer - Models IndeBuffer with the indices, that connecting the vertices
        material - Models material
        shape - Collision shape of the model
    • Method Detail

      • getIndexBuffer

        public IndexBuffer getIndexBuffer()
        Returns:
        Models IndexBuffer
      • getMaterial

        public Material getMaterial()
        Returns:
        Models material
      • getShape

        public com.bulletphysics.collision.shapes.CollisionShape getShape()
        Returns:
        Collision shape of the model