add BufferObject utility functions
This commit is contained in:
parent
7e12159178
commit
67109a09f9
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user