Class ModelPool.PooledModel
java.lang.Object
com.jozufozu.flywheel.backend.model.ModelPool.PooledModel
- All Implemented Interfaces:
BufferedModel
- Enclosing class:
- ModelPool
-
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 VAO must 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
-
Constructor Details
-
PooledModel
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceBufferedModel
-
getVertexCount
public int getVertexCount()- Specified by:
getVertexCountin interfaceBufferedModel
-
setupState
Description copied from interface:BufferedModelThe VAO must be bound externally.- Specified by:
setupStatein interfaceBufferedModel
-
drawCall
public void drawCall()- Specified by:
drawCallin interfaceBufferedModel
-
drawInstances
public void drawInstances(int instanceCount) Description copied from interface:BufferedModelDraws many instances of this model, assuming the appropriate state is already bound.- Specified by:
drawInstancesin interfaceBufferedModel
-
isDeleted
public boolean isDeleted()- Specified by:
isDeletedin interfaceBufferedModel
-
delete
public void delete()- Specified by:
deletein interfaceBufferedModel
-