Assimp  v4.1. (December 2018)
glTF2::BufferView Struct Reference

A view into a buffer generally representing a subset of the buffer. More...

Inherits glTF2::Object.

Public Member Functions

void Read (Value &obj, Asset &r)
 The target that the WebGL buffer should be bound to. More...
 
- Public Member Functions inherited from glTF2::Object
virtual bool IsSpecial () const
 Objects marked as special are not exported (used to emulate the binary body buffer) More...
 
virtual ~Object ()
 

Public Attributes

Ref< Bufferbuffer
 
size_t byteLength
 The offset into the buffer in bytes. (required) More...
 
size_t byteOffset
 The ID of the buffer. (required) More...
 
unsigned int byteStride
 The length of the bufferView in bytes. (default: 0) More...
 
BufferViewTarget target
 
- Public Attributes inherited from glTF2::Object
std::string id
 The globally unique ID used to reference this object. More...
 
int index
 The index of this object within its property container. More...
 
std::string name
 The user-defined name of this object. More...
 
int oIndex
 The original index of this object defined in the JSON. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from glTF2::Object
static const char * TranslateId (Asset &, const char *id)
 Maps special IDs to another ID, where needed. Subclasses may override it (statically) More...
 

Detailed Description

A view into a buffer generally representing a subset of the buffer.

Member Function Documentation

◆ Read()

void glTF2::BufferView::Read ( Value obj,
Asset r 
)
inline

The target that the WebGL buffer should be bound to.

Member Data Documentation

◆ buffer

Ref<Buffer> glTF2::BufferView::buffer

◆ byteLength

size_t glTF2::BufferView::byteLength

The offset into the buffer in bytes. (required)

◆ byteOffset

size_t glTF2::BufferView::byteOffset

The ID of the buffer. (required)

◆ byteStride

unsigned int glTF2::BufferView::byteStride

The length of the bufferView in bytes. (default: 0)

The stride, in bytes, between attributes referenced by this accessor. (default: 0)

◆ target

BufferViewTarget glTF2::BufferView::target

The documentation for this struct was generated from the following files: