Class TerrainMesh
- java.lang.Object
-
- de.coreengine.rendering.model.singletons.TerrainMesh
-
public class TerrainMesh extends Object
Class that represent one terrain grid and its morphing variants into lower lod- Author:
- Darius Dinger
-
-
Constructor Summary
Constructors Constructor Description TerrainMesh(VertexArrayObject vao, IndexBuffer fullMesh, IndexBuffer morphT, IndexBuffer morphB, IndexBuffer morphR, IndexBuffer morphL, IndexBuffer morphTL, IndexBuffer morphTR, IndexBuffer morphBL, IndexBuffer morphBR)
Create new terrain mesh with its morphing variants into lower lod
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IndexBuffer
getFullMesh()
static TerrainMesh
getInstance()
IndexBuffer
getMorphB()
IndexBuffer
getMorphBL()
IndexBuffer
getMorphBR()
IndexBuffer
getMorphL()
IndexBuffer
getMorphR()
IndexBuffer
getMorphT()
IndexBuffer
getMorphTL()
IndexBuffer
getMorphTR()
VertexArrayObject
getVao()
-
-
-
Constructor Detail
-
TerrainMesh
public TerrainMesh(VertexArrayObject vao, IndexBuffer fullMesh, IndexBuffer morphT, IndexBuffer morphB, IndexBuffer morphR, IndexBuffer morphL, IndexBuffer morphTL, IndexBuffer morphTR, IndexBuffer morphBL, IndexBuffer morphBR)
Create new terrain mesh with its morphing variants into lower lod- Parameters:
vao
- VertexArrayObject of the mesh with all verticesfullMesh
- Indices for full terrain mesh without morphingmorphT
- Indices for terrain mesh with top morphingmorphB
- Indices for terrain mesh with bottom morphingmorphR
- Indices for terrain mesh with right morphingmorphL
- Indices for terrain mesh with left morphingmorphTL
- Indices for terrain mesh with top left morphingmorphTR
- Indices for terrain mesh with top right morphingmorphBL
- Indices for terrain mesh with bottom left morphingmorphBR
- Indices for terrain mesh with bottom right morphing
-
-
Method Detail
-
getVao
public VertexArrayObject getVao()
- Returns:
- VertexArrayObject of the mesh with all vertices
-
getFullMesh
public IndexBuffer getFullMesh()
- Returns:
- Indices for full terrain mesh without morphing
-
getMorphT
public IndexBuffer getMorphT()
- Returns:
- Indices for terrain mesh with top morphing
-
getMorphB
public IndexBuffer getMorphB()
- Returns:
- Indices for terrain mesh with bottom morphing
-
getMorphR
public IndexBuffer getMorphR()
- Returns:
- Indices for terrain mesh with right morphing
-
getMorphL
public IndexBuffer getMorphL()
- Returns:
- Indices for terrain mesh with left morphing
-
getMorphTL
public IndexBuffer getMorphTL()
- Returns:
- Indices for terrain mesh with top left morphing
-
getMorphTR
public IndexBuffer getMorphTR()
- Returns:
- Indices for terrain mesh with top right morphing
-
getMorphBL
public IndexBuffer getMorphBL()
- Returns:
- Indices for terrain mesh with bottom left morphing
-
getMorphBR
public IndexBuffer getMorphBR()
- Returns:
- Indices for terrain mesh with bottom right morphing
-
getInstance
public static TerrainMesh getInstance()
- Returns:
- Get terrain mesh singleton instance
-
-