Circle.getPrimitiveRenderData() - Mtax-Development/GML-OOP GitHub Wiki
Name |
Type |
Optional |
location? |
{Vector2} |
Yes |
radius? |
{real} |
Yes |
fill_color? |
Yes |
|
fill_alpha? |
{real} |
Yes |
outline_size? |
{int} |
Yes |
outline_color? |
Yes |
|
outline_alpha? |
{real} |
Yes |
precision? |
{int:divisibleBy4} |
Yes |
outline? |
Yes |
{any[+]} | On error: {undefined}
Return an array containg rendering data for each 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. Up to two nested values will be returned in that array, depending on whether it was specified to return only data for outline, not return it and use only fill instead, or to contain all of this data. Each will be represented at following array positions, nested in the primary array:
• 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}