JCGLArrayBuffersType g; JCGLArrayBufferType a = g.arrayBufferAllocate(128, JCGLUsageHint.USAGE_STATIC_DRAW);
JCGLArrayBuffersType g; JCGLArrayBufferType a; final JCGLBufferUpdateType<JCGLArrayBufferType> u = JCGLBufferUpdates.newUpdateReplacingAll(this.array_buffer); final ByteBuffer b = u.getData(); for (int index = 0; index < 128; ++index) { b.put(index, (byte) index); } g.arrayBufferUpdate(u); g.arrayBufferUnbind();