Assimp
v3.1.1 (June 2014)
|
A buffer points to binary geometry, animation, or skins. More...
Inherits glTF::Object.
Public Types | |
enum | Type { Type_arraybuffer, Type_text } |
Public Member Functions | |
size_t | AppendData (uint8_t *data, size_t length) |
Buffer () | |
uint8_t * | GetPointer () |
void | Grow (size_t amount) |
bool | IsSpecial () const |
Objects marked as special are not exported (used to emulate the binary body buffer) More... | |
bool | LoadFromStream (IOStream &stream, size_t length=0, size_t baseOffset=0) |
void | MarkAsSpecial () |
void | Read (Value &obj, Asset &r) |
![]() | |
virtual | ~Object () |
Static Public Member Functions | |
static const char * | TranslateId (Asset &r, const char *id) |
![]() | |
static const char * | TranslateId (Asset &r, const char *id) |
Maps special IDs to another ID, where needed. Subclasses may override it (statically) More... | |
Public Attributes | |
size_t | byteLength |
The length of the buffer in bytes. (default: 0) More... | |
Type | type |
![]() | |
std::string | id |
The globally unique ID used to reference this object. More... | |
std::string | name |
The user-defined name of this object. More... | |
A buffer points to binary geometry, animation, or skins.
enum glTF::Buffer::Type |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Objects marked as special are not exported (used to emulate the binary body buffer)
Reimplemented from glTF::Object.
|
inline |
|
inline |
|
inlinestatic |
size_t glTF::Buffer::byteLength |
The length of the buffer in bytes. (default: 0)
Type glTF::Buffer::type |