A {@link VertexData} implementation based on OpenGL vertex buffer objects.
If the OpenGL ES context was lost you can call {@link #invalidate()} to recreate a new OpenGL vertex buffer object. This classcan be used seamlessly with OpenGL ES 1.x and 2.0.
In case OpenGL ES 2.0 is used in the application the data is bound via glVertexAttribPointer() according to the attribute aliases specified via {@link VertexAttributes} in the constructor.
Uses indirect Buffers on Android 1.5/1.6 to fix GC invocation due to leaking PlatformAddress instances.
VertexBufferObjects must be disposed via the {@link #dispose()} method when no longer needed
@author mzechner
|
|
|
|