/** Explicit size alternative version of: {@link #glMapBuffer MapBuffer} */ public static ByteBuffer glMapBuffer(int target, int access, long length, ByteBuffer old_buffer) { long __result = nglMapBuffer(target, access); return old_buffer != null && __result == memAddress0(old_buffer) && old_buffer.capacity() == length ? old_buffer : memByteBuffer(__result, (int) length); }
/** Alternative version of: {@link #glMapBuffer MapBuffer} */ public static ByteBuffer glMapBuffer(int target, int access, ByteBuffer old_buffer) { long __result = nglMapBuffer(target, access); int length = glGetBufferParameteri(target, GL_BUFFER_SIZE); return old_buffer != null && __result == memAddress0(old_buffer) && old_buffer.capacity() == length ? old_buffer : memByteBuffer(__result, length); }