Primitive allows for a more direct level of control over how an object is rendered, allowing drawing points, lines and polygons; with specifications over the draw mode. The shape is passed to the render system as is, without modification.
Table of contents
Inherited from: Component
• drawMode: DrawMode
Draw mode of the primitive, allows direct control over how the primitive is rendered.
• key: string
• material: Material
Material to apply when rendering the primitive.
• points: Polygon
List of points to pass to the render system, the shape that will be rendered.
• zOrder: number
Order which the primitive should appear, if it should appear infront/behind other objects, the higher the value the more precedence it is given and will appear in front of objects with a lower value.
Static KEY: primitive= "primitive"
Key of the primitive component.
Static MESSAGE_ADD: component_add= "component_add"
Static MESSAGE_REMOVE: component_remove= "component_remove"
▸ Free(): void