| java.lang.Object | ||
| ↳ | org.andengine.opengl.vbo.ZeroMemoryVertexBufferObject | |
| ↳ | org.andengine.opengl.vbo.SharedMemoryVertexBufferObject | |
Compared to ZeroMemoryVertexBufferObject, all SharedMemoryVertexBufferObjects 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 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
org.andengine.opengl.vbo.IVertexBufferObject
| |||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.andengine.opengl.vbo.ZeroMemoryVertexBufferObject
| |||||||||||
| 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 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.andengine.opengl.vbo.ZeroMemoryVertexBufferObject
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.andengine.opengl.vbo.IVertexBufferObject
| |||||||||||
From interface
org.andengine.util.IDisposable
| |||||||||||
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).