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

§ 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

§ scene

Ref<Scene> glTF::Asset::scene

§ scenes

LazyDict<Scene> glTF::Asset::scenes

§ textures

LazyDict<Texture> glTF::Asset::textures

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