Assimp  v4.1. (December 2018)
glTFAsset.h File Reference

Classes

struct  glTF::Accessor
 A typed view into a BufferView. More...
 
class  glTF::Accessor::Indexer
 Helper class to iterate the data. More...
 
struct  glTF::Animation
 
struct  glTF::Animation::AnimChannel
 
struct  glTF::Animation::AnimChannel::AnimTarget
 
struct  glTF::Animation::AnimParameters
 
struct  glTF::Animation::AnimSampler
 
class  glTF::Asset
 Root object for a glTF asset. More...
 
struct  glTF::Asset::Extensions
 Keeps info about the enabled extensions. More...
 
struct  glTF::AssetMetadata
 
class  glTF::AttribType
 Values for the Accessor::type field (helper class) More...
 
struct  glTF::Buffer
 A buffer points to binary geometry, animation, or skins. More...
 
struct  glTF::Buffer::SEncodedRegion
 
struct  glTF::BufferView
 A view into a buffer generally representing a subset of the buffer. More...
 
struct  glTF::Camera
 
struct  glTF::GLB_Header
 For the KHR_binary_glTF extension (binary .glb file) 20-byte header (+ the JSON + a "body" data section) More...
 
struct  glTF::Image
 Image data used to create a texture. More...
 
class  glTF::LazyDict< T >
 Manages lazy loading of the glTF top-level objects, and keeps a reference to them by ID It is the owner the loaded objects, so when it is destroyed it also deletes them. More...
 
class  glTF::LazyDict< T >
 Manages lazy loading of the glTF top-level objects, and keeps a reference to them by ID It is the owner the loaded objects, so when it is destroyed it also deletes them. More...
 
class  glTF::LazyDictBase
 Base class for LazyDict that acts as an interface. More...
 
struct  glTF::Light
 A light (from KHR_materials_common extension) More...
 
struct  glTF::Material
 The material appearance of a primitive. More...
 
struct  glTF::Mesh
 A set of primitives to be rendered. A node can contain one or more meshes. A node's transform places the mesh in the scene. More...
 
struct  glTF::Mesh::Primitive
 
struct  glTF::Mesh::Primitive::Attributes
 
struct  glTF::Mesh::SExtension
 
struct  glTF::Node
 
struct  glTF::Nullable< T >
 Helper struct to represent values that might not be present. More...
 
struct  glTF::Object
 Base class for all glTF top-level objects. More...
 
struct  glTF::Program
 
class  glTF::Ref< T >
 A reference to one top-level object, which is valid until the Asset instance is destroyed. More...
 
struct  glTF::Sampler
 
struct  glTF::Scene
 
struct  glTF::Shader
 
struct  glTF::Skin
 
struct  glTF::Technique
 
struct  glTF::Technique::Functions
 
struct  glTF::Technique::Parameters
 
struct  glTF::Technique::States
 
struct  glTF::TexProperty
 Holds a material property that can be a texture or a color. More...
 
struct  glTF::Texture
 A texture and its sampler. More...
 

Namespaces

 glTF
 

Macros

#define ai_assert
 
#define AI_GLB_MAGIC_NUMBER   "glTF"
 Magic number for GLB files. More...
 
#define AI_SWAP4(p)
 
#define gltf_unordered_map   map
 
#define RAPIDJSON_HAS_STDSTRING   1
 

Enumerations

enum  glTF::BufferViewTarget { glTF::BufferViewTarget_ARRAY_BUFFER = 34962, glTF::BufferViewTarget_ELEMENT_ARRAY_BUFFER = 34963 }
 Values for the BufferView::target field. More...
 
enum  glTF::ComponentType {
  glTF::ComponentType_BYTE = 5120, glTF::ComponentType_UNSIGNED_BYTE = 5121, glTF::ComponentType_SHORT = 5122, glTF::ComponentType_UNSIGNED_SHORT = 5123,
  glTF::ComponentType_UNSIGNED_INT = 5125, glTF::ComponentType_FLOAT = 5126
}
 Values for the Accessor::componentType field. More...
 
enum  glTF::PrimitiveMode {
  glTF::PrimitiveMode_POINTS = 0, glTF::PrimitiveMode_LINES = 1, glTF::PrimitiveMode_LINE_LOOP = 2, glTF::PrimitiveMode_LINE_STRIP = 3,
  glTF::PrimitiveMode_TRIANGLES = 4, glTF::PrimitiveMode_TRIANGLE_STRIP = 5, glTF::PrimitiveMode_TRIANGLE_FAN = 6
}
 Values for the mesh primitive modes. More...
 
enum  glTF::SamplerMagFilter { glTF::SamplerMagFilter_Nearest = 9728, glTF::SamplerMagFilter_Linear = 9729 }
 Values for the Sampler::magFilter field. More...
 
enum  glTF::SamplerMinFilter {
  glTF::SamplerMinFilter_Nearest = 9728, glTF::SamplerMinFilter_Linear = 9729, glTF::SamplerMinFilter_Nearest_Mipmap_Nearest = 9984, glTF::SamplerMinFilter_Linear_Mipmap_Nearest = 9985,
  glTF::SamplerMinFilter_Nearest_Mipmap_Linear = 9986, glTF::SamplerMinFilter_Linear_Mipmap_Linear = 9987
}
 Values for the Sampler::minFilter field. More...
 
enum  glTF::SamplerWrap { glTF::SamplerWrap_Clamp_To_Edge = 33071, glTF::SamplerWrap_Mirrored_Repeat = 33648, glTF::SamplerWrap_Repeat = 10497 }
 Values for the Sampler::wrapS and Sampler::wrapT field. More...
 
enum  glTF::SceneFormat { glTF::SceneFormat_JSON = 0 }
 Values for the GLB_Header::sceneFormat field. More...
 
enum  glTF::TextureFormat {
  glTF::TextureFormat_ALPHA = 6406, glTF::TextureFormat_RGB = 6407, glTF::TextureFormat_RGBA = 6408, glTF::TextureFormat_LUMINANCE = 6409,
  glTF::TextureFormat_LUMINANCE_ALPHA = 6410
}
 Values for the Texture::format and Texture::internalFormat fields. More...
 
enum  glTF::TextureTarget { glTF::TextureTarget_TEXTURE_2D = 3553 }
 Values for the Texture::target field. More...
 
enum  glTF::TextureType { glTF::TextureType_UNSIGNED_BYTE = 5121, glTF::TextureType_UNSIGNED_SHORT_5_6_5 = 33635, glTF::TextureType_UNSIGNED_SHORT_4_4_4_4 = 32819, glTF::TextureType_UNSIGNED_SHORT_5_5_5_1 = 32820 }
 Values for the Texture::type field. More...
 

Functions

unsigned int glTF::ComponentTypeSize (ComponentType t)
 
template<class T >
void glTF::WriteLazyDict (LazyDict< T > &d, AssetWriter &w)
 (Implemented in glTFAssetWriter.h) More...
 

Variables

struct glTF::GLB_Header glTF::PACK_STRUCT
 

Detailed Description

Declares a glTF class to handle gltf/glb files

glTF Extensions Support: KHR_binary_glTF: full KHR_materials_common: full

Declares a glTF class to handle gltf/glb files

glTF Extensions Support: KHR_materials_pbrSpecularGlossiness full KHR_materials_unlit full KHR_lights_punctual full

Macro Definition Documentation

◆ ai_assert

#define ai_assert

◆ AI_GLB_MAGIC_NUMBER

#define AI_GLB_MAGIC_NUMBER   "glTF"

Magic number for GLB files.

◆ AI_SWAP4

#define AI_SWAP4 (   p)

◆ gltf_unordered_map

#define gltf_unordered_map   map

◆ RAPIDJSON_HAS_STDSTRING

#define RAPIDJSON_HAS_STDSTRING   1