Cube.toVertexBuffer() - Mtax-Development/GML-OOP GitHub Wiki
Name |
Type |
Optional |
location? |
{Vector3} |
Yes |
scale? |
{Vector3} |
Yes |
angle? |
Yes |
|
sprite? |
{Sprite} |
Yes |
color? |
Yes |
|
alpha? |
Yes |
|
excludedSide? |
Yes |
|
vertexBuffer? |
Yes |
{VertexBuffer.PrimitiveRenderData[]}
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.