Interface: View

View

A view is something that is able to be rendered by the renderer.

Properties:
Name Type Description
_roundPixels 0 | 1

this is an int because it is packed directly into an attribute in the shader

addBounds (bounds: Bounds) => void

Adds the current bounds of this view to the supplied bounds

batched boolean

whether or not this view should be batched

bounds BoundsData

this is the AABB rectangle bounds of the view in local untransformed space.

containsPoint (point: Point) => boolean

Checks if the point is within the view

renderPipeId string

an identifier that is used to identify the type of system that will be used to render this renderable eg, 'sprite' will use the sprite system (based on the systems name

uid number

a unique id for this view

Members

_roundPixels 0 | 1

this is an int because it is packed directly into an attribute in the shader

addBounds (bounds: Bounds) => void

Adds the current bounds of this view to the supplied bounds

batched boolean

whether or not this view should be batched

bounds BoundsData

this is the AABB rectangle bounds of the view in local untransformed space.

containsPoint (point: Point) => boolean

Checks if the point is within the view

renderPipeId string

an identifier that is used to identify the type of system that will be used to render this renderable eg, 'sprite' will use the sprite system (based on the systems name

uid number

a unique id for this view

Methods

roundPixels () boolean

Whether or not to round the x/y position of the object.

Returns:
Type Description
boolean

roundPixels (value)

if true, the view will have its position rounded to the nearest whole number

Name Type Description
value boolean