add BufferObject utility functions

This commit is contained in:
Hannes Janetzek 2013-04-30 13:18:25 +02:00
parent 7e12159178
commit 67109a09f9

View File

@ -52,6 +52,14 @@ public final class BufferObject {
} }
} }
public void bindArrayBuffer(){
GLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, id);
}
public void bindIndexBuffer(){
GLES20.glBindBuffer(GLES20.GL_ELEMENT_ARRAY_BUFFER, id);
}
// ---------------------------- pool ---------------------------- // ---------------------------- pool ----------------------------
private static BufferObject pool; private static BufferObject pool;
static int counter = 0; static int counter = 0;