Code example for IntBuffer

Methods: get

0
		vbo = IntBuffer.allocate(numberOfVBOs);
		gl.glGenBuffers(numberOfVBOs, vbo);
 
		// Make a vertex array object for this shape 
		vao = IntBuffer.allocate(1);
		gl.glGenVertexArrays(1, vao);
 
		// bind the new (current) vertex array object 
		bind(); 
 
	} 
 
	public int getNextVBO() { 
		return vbo.get();
	} 
 
	public void bind() { 
		gl.glBindVertexArray(vao.get(0));
	} 
 
}