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

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_tGetPointer ()
 
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)
 
- Public Member Functions inherited from glTF::Object
virtual ~Object ()
 

Static Public Member Functions

static const char * TranslateId (Asset &r, const char *id)
 
- 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...
 

Public Attributes

size_t byteLength
 The length of the buffer in bytes. (default: 0) More...
 
Type type
 
- 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...
 

Detailed Description

A buffer points to binary geometry, animation, or skins.

Member Enumeration Documentation

◆ Type

Enumerator
Type_arraybuffer 
Type_text 

Constructor & Destructor Documentation

◆ Buffer()

glTF::Buffer::Buffer ( )
inline

Member Function Documentation

◆ AppendData()

size_t glTF::Buffer::AppendData ( uint8_t data,
size_t  length 
)
inline

◆ GetPointer()

uint8_t* glTF::Buffer::GetPointer ( )
inline

◆ Grow()

void glTF::Buffer::Grow ( size_t  amount)
inline

◆ IsSpecial()

bool glTF::Buffer::IsSpecial ( ) const
inlinevirtual

Objects marked as special are not exported (used to emulate the binary body buffer)

Reimplemented from glTF::Object.

◆ LoadFromStream()

bool glTF::Buffer::LoadFromStream ( IOStream stream,
size_t  length = 0,
size_t  baseOffset = 0 
)
inline

◆ MarkAsSpecial()

void glTF::Buffer::MarkAsSpecial ( )
inline

◆ Read()

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

◆ TranslateId()

const char * glTF::Buffer::TranslateId ( Asset r,
const char *  id 
)
inlinestatic

Member Data Documentation

◆ byteLength

size_t glTF::Buffer::byteLength

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

◆ type

Type glTF::Buffer::type

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