A typed view into a BufferView.
More...
Inherits glTF2::Object.
|
| static const char * | TranslateId (Asset &, 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 similar to how WebGL's vertexAttribPointer() defines an attribute in a buffer.
◆ Accessor()
| glTF2::Accessor::Accessor |
( |
| ) |
|
|
inline |
◆ ExtractData()
template<class T >
| bool glTF2::Accessor::ExtractData |
( |
T *& |
outData | ) |
|
◆ GetBytesPerComponent()
| unsigned int glTF2::Accessor::GetBytesPerComponent |
( |
| ) |
|
|
inline |
◆ GetElementSize()
| unsigned int glTF2::Accessor::GetElementSize |
( |
| ) |
|
|
inline |
◆ GetIndexer()
| Indexer glTF2::Accessor::GetIndexer |
( |
| ) |
|
|
inline |
◆ GetNumComponents()
| unsigned int glTF2::Accessor::GetNumComponents |
( |
| ) |
|
|
inline |
◆ GetPointer()
| uint8_t * glTF2::Accessor::GetPointer |
( |
| ) |
|
|
inline |
◆ Read()
| void glTF2::Accessor::Read |
( |
Value & |
obj, |
|
|
Asset & |
r |
|
) |
| |
|
inline |
◆ WriteData()
| void glTF2::Accessor::WriteData |
( |
size_t |
count, |
|
|
const void * |
src_buffer, |
|
|
size_t |
src_stride |
|
) |
| |
|
inline |
◆ bufferView
The ID of the bufferView. (required)
◆ byteOffset
| size_t glTF2::Accessor::byteOffset |
The offset relative to the start of the bufferView in bytes. (required)
◆ componentType
The datatype of components in the attribute. (required)
◆ count
| size_t glTF2::Accessor::count |
The number of attributes referenced by this accessor. (required)
◆ max
| std::vector<float> glTF2::Accessor::max |
Maximum value of each component in this attribute.
◆ min
| std::vector<float> glTF2::Accessor::min |
Minimum value of each component in this attribute.
◆ type
Specifies if the attribute is a scalar, vector, or matrix. (required)
The documentation for this struct was generated from the following files: