Assimp  v3.1.1 (June 2014)
glTF::BufferView Struct Reference

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

Inherits glTF::Object.

Public Member Functions

 BufferView ()
 The target that the WebGL buffer should be bound to. More...
 
void Read (Value &obj, Asset &r)
 
- Public Member Functions inherited from glTF::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...
 
BufferViewTarget target
 The length of the bufferView in bytes. (default: 0) More...
 
- Public Attributes inherited from glTF::Object
std::string id
 The globally unique ID used to reference this object. More...
 
std::string name
 The user-defined name of this object. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from 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...
 

Detailed Description

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

Constructor & Destructor Documentation

glTF::BufferView::BufferView ( )
inline

The target that the WebGL buffer should be bound to.

Member Function Documentation

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

Member Data Documentation

Ref<Buffer> glTF::BufferView::buffer
size_t glTF::BufferView::byteLength

The offset into the buffer in bytes. (required)

size_t glTF::BufferView::byteOffset

The ID of the buffer. (required)

BufferViewTarget glTF::BufferView::target

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


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