Plane.getPrimitiveRenderData() - Mtax-Development/GML-OOP GitHub Wiki
Name |
Type |
Optional |
location? |
{Vector3} |
Yes |
scale? |
{Vector3} |
Yes |
angle? |
Yes |
|
sprite? |
{Sprite} |
Yes |
{any[+]} | On error: {undefined}
Return an array containg rendering data for each vertex resulting in this Shape, consisting of its primitive type, location and UV of each vertex, using its current data or temporarily replaced parts. Data will be represented at following array positions:
• array[0]: primitive type {constant:pr_*}
• array[1]: vertex locations {real[+]}
• array[2]: texture data {any[+]}