Assimp  v4.1. (December 2018)
glTF2::Asset Class Reference

Root object for a glTF asset. More...

Classes

struct  Extensions
 Keeps info about the enabled extensions. More...
 

Public Member Functions

 Asset (IOSystem *io=0)
 
std::string FindUniqueID (const std::string &str, const char *suffix)
 Search for an available name, starting from the given strings. More...
 
Ref< BufferGetBodyBuffer ()
 
void Load (const std::string &file, bool isBinary=false)
 Main function. More...
 
void SetAsBinary ()
 Enables binary encoding on the asset. More...
 

Public Attributes

LazyDict< Accessoraccessors
 
LazyDict< Animationanimations
 
AssetMetadata asset
 
LazyDict< Bufferbuffers
 
LazyDict< BufferViewbufferViews
 
LazyDict< Cameracameras
 
struct glTF2::Asset::Extensions extensionsUsed
 
LazyDict< Imageimages
 
LazyDict< Materialmaterials
 
LazyDict< Meshmeshes
 
LazyDict< Nodenodes
 
LazyDict< Samplersamplers
 
Ref< Scenescene
 
LazyDict< Scenescenes
 
LazyDict< Skinskins
 
LazyDict< Texturetextures
 

Friends

class AssetWriter
 
struct Buffer
 Simple binary buffer, content undefined. More...
 
template<class T >
class LazyDict
 

Detailed Description

Root object for a glTF asset.

Constructor & Destructor Documentation

◆ Asset()

glTF2::Asset::Asset ( IOSystem io = 0)
inline

Member Function Documentation

◆ FindUniqueID()

std::string glTF2::Asset::FindUniqueID ( const std::string &  str,
const char *  suffix 
)
inline

Search for an available name, starting from the given strings.

◆ GetBodyBuffer()

Ref<Buffer> glTF2::Asset::GetBodyBuffer ( )
inline

◆ Load()

void glTF2::Asset::Load ( const std::string &  file,
bool  isBinary = false 
)
inline

Main function.

◆ SetAsBinary()

void glTF2::Asset::SetAsBinary ( )
inline

Enables binary encoding on the asset.

Friends And Related Function Documentation

◆ AssetWriter

friend class AssetWriter
friend

◆ Buffer

friend struct Buffer
friend

Simple binary buffer, content undefined.

Not convertible to anything.

◆ LazyDict

template<class T >
friend class LazyDict
friend

Member Data Documentation

◆ accessors

LazyDict<Accessor> glTF2::Asset::accessors

◆ animations

LazyDict<Animation> glTF2::Asset::animations

◆ asset

AssetMetadata glTF2::Asset::asset

◆ buffers

LazyDict<Buffer> glTF2::Asset::buffers

◆ bufferViews

LazyDict<BufferView> glTF2::Asset::bufferViews

◆ cameras

LazyDict<Camera> glTF2::Asset::cameras

◆ extensionsUsed

struct glTF2::Asset::Extensions glTF2::Asset::extensionsUsed

◆ images

LazyDict<Image> glTF2::Asset::images

◆ materials

LazyDict<Material> glTF2::Asset::materials

◆ meshes

LazyDict<Mesh> glTF2::Asset::meshes

◆ nodes

LazyDict<Node> glTF2::Asset::nodes

◆ samplers

LazyDict<Sampler> glTF2::Asset::samplers

◆ scene

Ref<Scene> glTF2::Asset::scene

◆ scenes

LazyDict<Scene> glTF2::Asset::scenes

◆ skins

LazyDict<Skin> glTF2::Asset::skins

◆ textures

LazyDict<Texture> glTF2::Asset::textures

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