API

Function GetFloatData

  • Gets the given data array as a float array. Float data is constructed if the data array cannot be returned directly.

    Parameters

    • data: DataArray

      the input data array

    • size: number

      the number of components

    • type: number

      the component type

    • byteOffset: number

      the byte offset of the data

    • byteStride: number

      the byte stride of the data

    • normalized: boolean

      whether the data is normalized

    • totalVertices: number

      number of vertices in the buffer to take into account

    • OptionalforceCopy: boolean

      defines a boolean indicating that the returned array must be cloned upon returning it

    Returns FloatArray

    a float array containing vertex data