Revision Difference
Structures/PolygonVertex#516795
<cat>struct</cat>
<structure>⤶
<description>⤶
A structure containing vertex information for use with <page>surface.DrawPoly</page>.⤶
{{Structure⤶
|Description=A structure containing vertex information for use with <page>surface.DrawPoly</page>.⤶
UV coordinates describe which part of a given texture should be drawn at a vertex - your graphics card's interpolator will fill in space between vertices. UV coords range from 0-1, with 0 being top/left and 1 being bottom/right. If you're using a texture these are mandatory.
<note>You must pass a table of tables with this structure to the function. **You need to pass at least 3 points.**</note><note>Your points must be defined in a **clockwise order.** Otherwise, your shape will not render.</note>
</description>⤶
<fields>{{StructureField|number|x|The x coordinate of the vertex.</fields>⤶
⤶
</structure>⤶
⤶
{{StructureField|number|y|The y coordinate of the vertex.}}{{StructureField|number|u|The u texture coordinate of the vertex. `Can be left blank.`}}{{StructureField|number|v|The v texture coordinate of the vertex. `Can be left blank.`}}⤶
|Fields={{StructureField|number|x|The x coordinate of the vertex.}}{{StructureField|number|y|The y coordinate of the vertex.}}{{StructureField|number|u|The u texture coordinate of the vertex. `Can be left blank.`}}{{StructureField|number|v|The v texture coordinate of the vertex. `Can be left blank.`}}⤶
}}