Buffer.fromSurface() - Mtax-Development/GML-OOP GitHub Wiki

Arguments

Name
Type
Optional
surface
{Surface|int:surface}
No
offset?
{int}
Yes
modulo?
{int}
Yes

Returns

Not applicable.

Description

Copy information from the specified Surface to this Buffer. A byte offset can be specified for where the operation will start. For this operation, this Buffer should be of Grow type with alignment of 1 byte.

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