Cube.toVertexBuffer() - Mtax-Development/GML-OOP GitHub Wiki

Arguments

Name
Type
Optional
location?
Yes
scale?
Yes
angle?
Yes
sprite?
Yes
color?
{int:color|int:color[]}
Yes
alpha?
Yes
excludedSide?
{int|int[]}
Yes
vertexBuffer?
Yes

Returns

{VertexBuffer.PrimitiveRenderData[]}

Description

Return rendering data of this constructor in Vertex Buffers, using its current data or specified temporarily replaced parts. A single Vertex Buffer can be specified instead to place rendering data in it, instead of creating several new ones, affecting rendered transparency. If specified while being currently active, it will not be deactivated after this operation. Rendering data for six sides will be returned in an array, except for sides that were excluded by specifying their numbers, starting from 1 in following order: Top, Bottom, Left, Front, Right, Back.

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