Package org.oscim.renderer
Class BufferObject
-
Nested Class Summary
Nested classes/interfaces inherited from class org.oscim.utils.pool.Inlist
Inlist.List<T extends Inlist<?>> -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoidbind()static voidcheckBufferUsage(boolean force) static BufferObjectget(int target, int size) static booleanvoidloadBufferData(Buffer buf, int newSize) static BufferObjectrelease(BufferObject bo) voidunbind()Methods inherited from class org.oscim.utils.pool.Inlist
appendItem, appendList, get, last, next, prependRelative, push, remove, size
-
Method Details
-
loadBufferData
- Parameters:
newSize- size required in bytes
-
bind
public void bind() -
unbind
public void unbind() -
checkBufferUsage
public static void checkBufferUsage(boolean force) -
get
- Parameters:
target- can be GL20.ARRAY_BUFFER or GL20.ELEMENT_ARRAY_BUFFERsize- requested size in bytes. optional - can be 0.
-
release
-
isMaxFill
public static boolean isMaxFill()
-