Class IndexedModel
java.lang.Object
com.jozufozu.flywheel.backend.model.IndexedModel
- All Implemented Interfaces:
BufferedModel
An indexed triangle model. Just what the driver ordered.
This should be favored over a normal BufferedModel.
This should be favored over a normal BufferedModel.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected ElementBufferprotected final Modelprotected final GlPrimitiveprotected final VertexTypeprotected GlBuffer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()voiddrawCall()voiddrawInstances(int instanceCount) Draws many instances of this model, assuming the appropriate state is already bound.getType()intbooleanvoidsetupState(GlVertexArray vao) The VBO/VAO should be bound externally.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.jozufozu.flywheel.backend.model.BufferedModel
getAttributeCount, getLayout, valid
-
Field Details
-
type
-
model
-
primitiveMode
-
ebo
-
vbo
-
deleted
protected boolean deleted
-
-
Constructor Details
-
IndexedModel
-
IndexedModel
-
-
Method Details
-
setupState
The VBO/VAO should be bound externally.- Specified by:
setupStatein interfaceBufferedModel
-
drawCall
public void drawCall()- Specified by:
drawCallin interfaceBufferedModel
-
drawInstances
public void drawInstances(int instanceCount) Draws many instances of this model, assuming the appropriate state is already bound.- Specified by:
drawInstancesin interfaceBufferedModel
-
isDeleted
public boolean isDeleted()- Specified by:
isDeletedin interfaceBufferedModel
-
getType
- Specified by:
getTypein interfaceBufferedModel
-
getVertexCount
public int getVertexCount()- Specified by:
getVertexCountin interfaceBufferedModel
-
delete
public void delete()- Specified by:
deletein interfaceBufferedModel
-