In IndexBufferObject wraps OpenGL's index buffer functionality to be used in conjunction with VBOs. This class can be seamlessly used with OpenGL ES 1.x and 2.0.
Uses indirect Buffers on Android 1.5/1.6 to fix GC invocation due to leaking PlatformAddress instances.
You can also use this to store indices for vertex arrays. Do not call {@link #bind()} or {@link #unbind()} in this case butrather use {@link #getBuffer()} to use the buffer directly with glDrawElements. You must also create the IndexBufferObject withthe second constructor and specify isDirect as true as glDrawElements in conjunction with vertex arrays needs direct buffers.
VertexBufferObjects must be disposed via the {@link #dispose()} method when no longer needed
@author mzechner