Assimp  v4.1. (December 2018)
glTF::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< Buffer > GetBodyBuffer ()
 
void Load (const std::string &file, bool isBinary=false)
 Main function. More...
 
void SetAsBinary ()
 Enables the "KHR_binary_glTF" extension on the asset. More...
 

Public Attributes

LazyDict< Accessor > accessors
 
LazyDict< Animation > animations
 
AssetMetadata asset
 
LazyDict< Buffer > buffers
 
LazyDict< BufferView > bufferViews
 
LazyDict< Camera > cameras
 
struct glTF::Asset::Extensions extensionsUsed
 
LazyDict< Image > images
 
LazyDict< Light > lights
 
LazyDict< Material > materials
 
LazyDict< Mesh > meshes
 
LazyDict< Node > nodes
 
LazyDict< Sampler > samplers
 
Ref< Scene > scene
 
LazyDict< Scene > scenes
 
LazyDict< Skin > skins
 
LazyDict< Texture > textures
 

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()

glTF::Asset::Asset ( IOSystem *  io = 0)
inline

Member Function Documentation

◆ FindUniqueID()

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

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

◆ GetBodyBuffer()

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

◆ Load()

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

Main function.

◆ SetAsBinary()

void glTF::Asset::SetAsBinary ( )
inline

Enables the "KHR_binary_glTF" extension 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> glTF::Asset::accessors

◆ animations

LazyDict<Animation> glTF::Asset::animations

◆ asset

AssetMetadata glTF::Asset::asset

◆ buffers

LazyDict<Buffer> glTF::Asset::buffers

◆ bufferViews

LazyDict<BufferView> glTF::Asset::bufferViews

◆ cameras

LazyDict<Camera> glTF::Asset::cameras

◆ extensionsUsed

struct glTF::Asset::Extensions glTF::Asset::extensionsUsed

◆ images

LazyDict<Image> glTF::Asset::images

◆ lights

LazyDict<Light> glTF::Asset::lights

◆ materials

LazyDict<Material> glTF::Asset::materials

◆ meshes

LazyDict<Mesh> glTF::Asset::meshes

◆ nodes

LazyDict<Node> glTF::Asset::nodes

◆ samplers

LazyDict<Sampler> glTF::Asset::samplers

◆ scene

Ref<Scene> glTF::Asset::scene

◆ scenes

LazyDict<Scene> glTF::Asset::scenes

◆ skins

LazyDict<Skin> glTF::Asset::skins

◆ textures

LazyDict<Texture> glTF::Asset::textures

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