Point.getPrimitiveRenderData() - Mtax-Development/GML-OOP GitHub Wiki
Name |
Type |
Optional |
location? |
{Vector2} |
Yes |
color? |
{int:color} |
Yes |
alpha? |
{real} |
Yes |
{any[+]} | On error: {undefined}
Return an array containg rendering data for vertex resulting in this Shape, consisting of its primitive type, location, color and alpha value, based on the data of this constructor or its specified replaced parts. Each will be represented at following array positions:
• array[0]: primitive type {constant:pr_*}
• array[1]: vertex data {any[]}
• array[1][0]: location {real[]}
• array[1][1]: color {int:color}
• array[1][2]: alpha {real}