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

Base class for all glTF top-level objects. More...

Inherited by glTF2::Accessor, glTF2::Animation, glTF2::Buffer, glTF2::BufferView, glTF2::Camera, glTF2::Image, glTF2::Light, glTF2::Material, glTF2::Mesh, glTF2::Node, glTF2::Program, glTF2::Sampler, glTF2::Scene, glTF2::Shader, glTF2::Skin, and glTF2::Texture.

Public Member Functions

virtual bool IsSpecial () const
 Objects marked as special are not exported (used to emulate the binary body buffer) More...
 
virtual ~Object ()
 

Static Public Member Functions

static const char * TranslateId (Asset &, const char *id)
 Maps special IDs to another ID, where needed. Subclasses may override it (statically) More...
 

Public Attributes

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...
 

Detailed Description

Base class for all glTF top-level objects.

Constructor & Destructor Documentation

◆ ~Object()

virtual glTF2::Object::~Object ( )
inlinevirtual

Member Function Documentation

◆ IsSpecial()

virtual bool glTF2::Object::IsSpecial ( ) const
inlinevirtual

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

Reimplemented in glTF2::Buffer.

◆ TranslateId()

static const char* glTF2::Object::TranslateId ( Asset ,
const char *  id 
)
inlinestatic

Maps special IDs to another ID, where needed. Subclasses may override it (statically)

Member Data Documentation

◆ id

std::string glTF2::Object::id

The globally unique ID used to reference this object.

◆ index

int glTF2::Object::index

The index of this object within its property container.

◆ name

std::string glTF2::Object::name

The user-defined name of this object.

◆ oIndex

int glTF2::Object::oIndex

The original index of this object defined in the JSON.


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