Options
All
  • Public
  • Public/Protected
  • All
Menu

A component describing a 2d closed polygon shape

Hierarchy

Index

Constructors

constructor

  • Parameters

    • Optional vertices: Vector2[]
    • Optional indices: number[]

    Returns Shape2D

Properties

indices

indices: number[]

Optional: Indices into the vertices of the shape. Every 3 indices form one triangle. Index values must be between 0 and vertices.size. If indices has length zero, vertices are rendered as a triangle fan.

vertices

vertices: Vector2[]

The vertices of the shape. Shapes are limited to 64k vertices.

Static _isSharedComp

_isSharedComp: boolean

Static _size

_size: number

Static _view

_view: any

Static cid

cid: number

Methods

Static _dtorFn

  • Parameters

    Returns void

Static _fromPtr

  • Parameters

    Returns Shape2D

Static _tempHeapPtr

  • Parameters

    Returns number

Static _toPtr

  • _toPtr(p: number, v: Shape2D): void
  • Parameters

    Returns void

Generated using TypeDoc