Package de.coreengine.rendering.model
Class Mesh
- java.lang.Object
-
- de.coreengine.rendering.model.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 Summary
Constructors Constructor Description Mesh(VertexArrayObject vao, IndexBuffer indexBuffer, com.bulletphysics.collision.shapes.CollisionShape shape)
Creating new model and set the material to default materialMesh(VertexArrayObject vao, IndexBuffer indexBuffer, Material material, com.bulletphysics.collision.shapes.CollisionShape shape)
Creating new model with all parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IndexBuffer
getIndexBuffer()
Material
getMaterial()
com.bulletphysics.collision.shapes.CollisionShape
getShape()
VertexArrayObject
getVao()
-
-
-
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 verticesindexBuffer
- Models IndeBuffer with the indices, that connecting the verticesshape
- 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 verticesindexBuffer
- Models IndeBuffer with the indices, that connecting the verticesmaterial
- Models materialshape
- Collision shape of the model
-
-
Method Detail
-
getIndexBuffer
public IndexBuffer getIndexBuffer()
- Returns:
- Models IndexBuffer
-
getMaterial
public Material getMaterial()
- Returns:
- Models material
-
getVao
public VertexArrayObject getVao()
- Returns:
- Models VertexArrayObject
-
getShape
public com.bulletphysics.collision.shapes.CollisionShape getShape()
- Returns:
- Collision shape of the model
-
-