add BufferObject utility functions

This commit is contained in:
Hannes Janetzek
2013-10-09 01:56:01 +02:00
parent 7e12159178
commit 67109a09f9
+8
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 ----------------------------
private static BufferObject pool;
static int counter = 0;