Package gaiasky.render.system
Class InstancedRenderSystem.InstancedModel
java.lang.Object
gaiasky.render.system.InstancedRenderSystem.InstancedModel
- Enclosing class:
InstancedRenderSystem
Holds temporary instanced model data.
-
Field Summary
Modifier and TypeFieldDescriptionint[]
float[]
int
Vertex size in floats (4-bytes).int
Number of indices.int
Number of vertices.int
int
int
int
int
int
int
float[]
-
Constructor Summary
ConstructorDescriptionInstancedModel
(int numModelVertices, int modelVertexSize) InstancedModel
(int numModelVertices, int modelVertexSize, int numIndices) InstancedModel
(IntMesh mesh) -
Method Summary
-
Field Details
-
sizeOffset
public int sizeOffset -
particlePosOffset
public int particlePosOffset -
properMotionOffset
public int properMotionOffset -
textureIndexOffset
public int textureIndexOffset -
nVariOffset
public int nVariOffset -
variMagsOffset
public int variMagsOffset -
variTimesOffset
public int variTimesOffset -
numVertices
public int numVerticesNumber of vertices. -
modelVertexSize
public int modelVertexSizeVertex size in floats (4-bytes). -
numIndices
public int numIndicesNumber of indices. -
vertices
public float[] vertices -
indices
public int[] indices -
instanceAttributes
public float[] instanceAttributes
-
-
Constructor Details
-
InstancedModel
-
InstancedModel
public InstancedModel(int numModelVertices, int modelVertexSize, int numIndices) -
InstancedModel
public InstancedModel(int numModelVertices, int modelVertexSize)
-
-
Method Details
-
ensureInstanceAttribsSize
public void ensureInstanceAttribsSize(int size) -
initializeLists
protected void initializeLists()
-