VertexBuffer.copy() - Mtax-Development/GML-OOP GitHub Wiki

Arguments

Name
Type
Optional
other
No
size?
Yes
offset?
{int}
Yes
other_offset?
{int}
Yes

Returns

Not applicable.

Description

Copy all data or its segment from other Vertex Buffer or Buffer to this one. For both, an offset can be specified for where the operation will start and then continue until the end of either the specified segment or Buffer was reached. This operation is performed differently depending on specified source:
  • Vertex Buffer: Size and offsets are measured in number of vertices affected.
  • Buffer: Size and offsets are measured with number of bytes affected. This Vertex Buffer must already be formatted with a Vertex Format, meaning it was activated and then deactivated, even if no vertices were added to it.

⚠️ **GitHub.com Fallback** ⚠️