* @param value3 the third value
* @param value4 the fourth value */
public void setAttributef (String name, float value1, float value2, float value3, float value4) {
GL20 gl = Gdx.graphics.getGL20();
int location = fetchAttributeLocation(name);
gl.glVertexAttrib4f(location, value1, value2, value3, value4);
}
private void ensureBufferCapacity (int numBytes) {
if (buffer == null || buffer.capacity() != numBytes) {
buffer = BufferUtils.newByteBuffer(numBytes);