Phaser API Documentation

  Version: 
load(F32, U32, offset, textureUnit, alpha, a, b, c, d, e, f, roundPixels)

Description:

Loads the data from this Vertex into the given Typed Arrays.

Parameters:

name type description
F32 Float32Array

A Float32 Array to insert the position, UV and unit data in to.

U32 Uint32Array

A Uint32 Array to insert the color and alpha data in to.

offset number

The index of the array to insert this Vertex to.

textureUnit number

The texture unit currently in use.

alpha number

The alpha of the parent object.

a number

The parent transform matrix data a component.

b number

The parent transform matrix data b component.

c number

The parent transform matrix data c component.

d number

The parent transform matrix data d component.

e number

The parent transform matrix data e component.

f number

The parent transform matrix data f component.

roundPixels boolean

Round the vertex position or not?

Returns:
Description:

The new vertex index array offset.

Type:
  • number
Since: 3.50.0
Source: src/geom/mesh/Face.js (Line 266)