Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QSSGGltfAccessorReader Namespace Reference

Functions

QByteArray readPacked (const QSSGGltfDocument &document, int accessorIndex)
QList< float > readAsFloats (const QSSGGltfDocument &document, int accessorIndex)
QList< quint32readIndices (const QSSGGltfDocument &document, int accessorIndex)

Detailed Description

Typed access to glTF accessor data. All functions compose the buffer view byte stride (interleaved data), the accessor byte offset, and sparse substitution, and return tightly packed copies. An accessor without a buffer view yields zeros, as the specification requires.

Function Documentation

◆ readAsFloats()

QList< float > QSSGGltfAccessorReader::readAsFloats ( const QSSGGltfDocument & document,
int accessorIndex )

Returns the element data of accessor accessorIndex in document, converted to floats, accessor.componentCount() per element. Normalized integer component types are dequantized as the specification describes (c/255, max(c/127, -1), ...), which also covers accessors quantized per KHR_mesh_quantization; non-normalized integers are cast.

Definition at line 168 of file qssggltfaccessorreader.cpp.

◆ readIndices()

QList< quint32 > QSSGGltfAccessorReader::readIndices ( const QSSGGltfDocument & document,
int accessorIndex )

Returns the scalar index data of accessor accessorIndex in document, widened to 32-bit unsigned integers.

Definition at line 190 of file qssggltfaccessorreader.cpp.

◆ readPacked()

QByteArray QSSGGltfAccessorReader::readPacked ( const QSSGGltfDocument & document,
int accessorIndex )

Returns the element data of accessor accessorIndex in document, packed to accessor.elementByteSize() per element.

Definition at line 131 of file qssggltfaccessorreader.cpp.