java.lang.Object | ||
↳ | org.andengine.opengl.vbo.ZeroMemoryVertexBufferObject | |
↳ | org.andengine.opengl.vbo.SharedMemoryVertexBufferObject |
Compared to ZeroMemoryVertexBufferObject
, all SharedMemoryVertexBufferObject
s share a single ByteBuffer which is used by whichever SharedMemoryVertexBufferObject
instance is currently buffering data,
at the cost of expensive data buffering (up to 5x slower!) and a little synchronization overhead.
SharedMemoryVertexBufferObject
is preferred to a ZeroMemoryVertexBufferObject
when the following conditions need to be met:
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
When a non
null ByteBuffer is returned by this function, it is guaranteed that releaseByteBuffer(ByteBuffer) is called. | |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
When a non null
ByteBuffer
is returned by this function, it is guaranteed that releaseByteBuffer(ByteBuffer)
is called.
ByteBuffer
to be passed to onPopulateBufferData(ByteBuffer)
.