A typed view into a BufferView.
More...
Inherits glTF::Object.
|
static const char * | TranslateId (Asset &r, const char *id) |
| Maps special IDs to another ID, where needed. Subclasses may override it (statically) More...
|
|
A typed view into a BufferView.
A BufferView contains raw binary data. An accessor provides a typed view into a BufferView or a subset of a BufferView
◆ Accessor()
glTF::Accessor::Accessor |
( |
| ) |
|
|
inline |
◆ ExtractData()
template<class T >
bool glTF::Accessor::ExtractData |
( |
T *& |
outData | ) |
|
◆ GetBytesPerComponent()
unsigned int glTF::Accessor::GetBytesPerComponent |
( |
| ) |
|
|
inline |
◆ GetElementSize()
unsigned int glTF::Accessor::GetElementSize |
( |
| ) |
|
|
inline |
◆ GetIndexer()
Indexer glTF::Accessor::GetIndexer |
( |
| ) |
|
|
inline |
◆ GetNumComponents()
unsigned int glTF::Accessor::GetNumComponents |
( |
| ) |
|
|
inline |
◆ GetPointer()
uint8_t * glTF::Accessor::GetPointer |
( |
| ) |
|
|
inline |
◆ Read()
void glTF::Accessor::Read |
( |
Value & |
obj, |
|
|
Asset & |
r |
|
) |
| |
|
inline |
◆ WriteData()
void glTF::Accessor::WriteData |
( |
size_t |
count, |
|
|
const void * |
src_buffer, |
|
|
size_t |
src_stride |
|
) |
| |
|
inline |
◆ bufferView
The ID of the bufferView. (required)
◆ byteOffset
unsigned int glTF::Accessor::byteOffset |
The offset relative to the start of the bufferView in bytes. (required)
◆ byteStride
unsigned int glTF::Accessor::byteStride |
The stride, in bytes, between attributes referenced by this accessor. (default: 0)
◆ componentType
The datatype of components in the attribute. (required)
◆ count
unsigned int glTF::Accessor::count |
The number of attributes referenced by this accessor. (required)
◆ type
Specifies if the attribute is a scalar, vector, or matrix. (required)
The documentation for this struct was generated from the following files: