Assimp  v3.1.1 (June 2014)
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< BufferGetBodyBuffer ()
 
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< Accessoraccessors
 
LazyDict< Animationanimations
 
AssetMetadata asset
 
LazyDict< Bufferbuffers
 
LazyDict< BufferViewbufferViews
 
LazyDict< Cameracameras
 
struct glTF::Asset::Extensions extensionsUsed
 
LazyDict< Imageimages
 
LazyDict< Lightlights
 
LazyDict< Materialmaterials
 
LazyDict< Meshmeshes
 
LazyDict< Nodenodes
 
Ref< Scenescene
 
LazyDict< Scenescenes
 
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

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

Member Function Documentation

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

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

Ref<Buffer> glTF::Asset::GetBodyBuffer ( )
inline
void glTF::Asset::Load ( const std::string &  file,
bool  isBinary = false 
)
inline

Main function.

void glTF::Asset::SetAsBinary ( )
inline

Enables the "KHR_binary_glTF" extension on the asset.

Friends And Related Function Documentation

friend class AssetWriter
friend
friend struct Buffer
friend

Simple binary buffer, content undefined.

Not convertible to anything.

template<class T >
friend class LazyDict
friend

Member Data Documentation

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

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