RoundRectangle.getPrimitiveRenderData() - Mtax-Development/GML-OOP GitHub Wiki

Arguments

Name
Type
Optional
location?
Yes
radius?
Yes
fill_color?
{int:color|Color2|Color4|[int:color,
Yes
fill_alpha?
Yes
outline_size?
{int}
Yes
outline_color?
{int:color|Color2|Color4}
Yes
outline_alpha?
Yes
precision?
{int:divisibleBy4}
Yes
outline?
Yes

Returns

{any[+]} | On error: {undefined}

Description

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}

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