/** * Establishes the binding index for the Vertex Buffer Specified by {@code name} in this Vertex * Array. This function is essential for Vertex buffers to be able to be used with the Vertex * array object. * * @param name Name of the Vertex buffer in this Vertex array to bind to an index in the array * @return True if the name exists, false otherwise */ public boolean registerVBO(String name) { // check to make sure the buffer being set exists if (vbos.get(name) != null) { glVertexArrayVertexBuffer(vaoId, bufferIndices.get(name), vbos.get(name).getId(), 0, stride); return true; } else { return false; } }