This extension provides a mechanism to do an accelerated copy from one buffer object to another. This may be useful to load buffer objects in a "loading thread" while minimizing cost and synchronization effort in the "rendering thread."
Promoted to core in OpenGL 3..
| Modifier and Type | Field and Description |
|---|---|
| public static final int | GL_COPY_READ_BUFFER
Accepted by the target parameters of BindBuffer, BufferData, BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, GetBufferPointerv, MapBufferRange, FlushMappedBufferRange, GetBufferParameteriv, BindBufferRange, BindBufferBase, and CopyBufferSubData. |
| public static final int | GL_COPY_WRITE_BUFFER
Accepted by the target parameters of BindBuffer, BufferData, BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, GetBufferPointerv, MapBufferRange, FlushMappedBufferRange, GetBufferParameteriv, BindBufferRange, BindBufferBase, and CopyBufferSubData. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| public static void | glCopyBufferSubData(int
the source buffer object target. One of: readTarget, int
the destination buffer object target writeTarget, long the source buffer object offset, in bytes readOffset, long the destination buffer object offset, in bytes writeOffset, long the number of bytes to copy size)Copies all or part of one buffer object's data store to the data store of another buffer object. |
| GL_COPY_READ_BUFFER | back to summary |
|---|---|
| public static final int GL_COPY_READ_BUFFER Accepted by the target parameters of BindBuffer, BufferData, BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, GetBufferPointerv, MapBufferRange, FlushMappedBufferRange, GetBufferParameteriv, BindBufferRange, BindBufferBase, and CopyBufferSubData. | |
| GL_COPY_WRITE_BUFFER | back to summary |
|---|---|
| public static final int GL_COPY_WRITE_BUFFER Accepted by the target parameters of BindBuffer, BufferData, BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, GetBufferPointerv, MapBufferRange, FlushMappedBufferRange, GetBufferParameteriv, BindBufferRange, BindBufferBase, and CopyBufferSubData. | |
| ARBCopyBuffer | back to summary |
|---|---|
| protected ARBCopyBuffer() | |
| glCopyBufferSubData | back to summary | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| public static void glCopyBufferSubData(int readTarget, int writeTarget, long readOffset, long writeOffset, long size) Copies all or part of one buffer object's data store to the data store of another buffer object. An An An An
| ||||||||||