Accessor

A typed view into a buffer view that contains raw binary data.

Constructors

this
this(int bufferView, int byteOffset, bool normalized, int componentType, int count, int type)
Undocumented in source.

Members

Functions

byteStride
int byteStride(BufferView bufferViewObject)

Utility function to compute byteStride for a given bufferView object. Returns -1 upon invalid glTF value or parameter configuration.

Variables

bufferView
int bufferView;

The index of the bufferView. REQUIRED here since sparse accessor are not supported.

byteOffset
size_t byteOffset;

The offset relative to the start of the buffer view in bytes.

componentType
int componentType;

The datatype of the accessor’s components. REQUIRED. One of TINYGLTF_COMPONENT_TYPE_***

count
int count;

REQUIRED. The number of elements referenced by this accessor.

maxValues
double[] maxValues;

Maximum value of each component in this accessor. OPTIONAL. Integer value is promoted to double.

minValues
double[] minValues;

Minimum value of each component in this accessor. OPTIONAL. Integer value is promoted to double.

name
string name;

The name of the Accessor.

normalized
bool normalized;

Specifies whether integer data values are normalized before usage. OPTIONAL.

type
int type;

Specifies if the accessor’s elements are scalars, vectors, or matrices. REQUIRED. One of TINYGLTF_TYPE_***

Meta