22 void Import(
const std::string& path,
const std::string& filename);
41 enum ComponentType { BYTE = 5120, UNSIGNED_BYTE, SHORT, UNSIGNED_SHORT, UNSIGNED_INT = 5125, FLOAT } componentType;
42 enum class Type { SCALAR, VEC2, VEC3, VEC4 } type;
62 uint32_t albedoTexture;
63 uint32_t roughnessMetallicTexture;
64 uint32_t normalTexture;
69 std::vector<Buffer> buffers;
70 std::vector<BufferView> bufferViews;
71 std::vector<Accessor> accessors;
72 std::vector<std::string> meshes;
73 std::vector<std::string> images;
74 std::vector<Texture> textures;
75 std::vector<Material> materials;
78 void ReadBuffers(
const std::string& path, GLTF& gltf);
79 void ReadBufferViews(GLTF& gltf);
80 void ReadAccessors(GLTF& gltf);
81 void ReadImages(
const std::string& path, GLTF& gltf);
82 void ReadTextures(GLTF& gltf);
83 void ReadMaterials(GLTF& gltf);
84 void LoadMeshes(
const std::string& path,
const std::string& filename, GLTF& gltf);
85 Primitive LoadPrimitive(
const GLTF& gltf,
const Json::Value& primitive);
86 void SavePrimitive(
const Primitive& primitive,
const std::string& filename);
87 void LoadScenes(
const std::string& path,
const std::string& filename, GLTF& gltf);
88 void LoadNode(GLTF& gltf,
Entity* parent, uint32_t index);
Entity containing various components.
Definition: Entity.hpp:16
Converts GLTF models to internal format.
Definition: GLTFImporter.hpp:15
void Import(const std::string &path, const std::string &filename)
Import a GLTF model.
Definition: GLTFImporter.cpp:16
Vertex type used for static meshes.
Definition: StaticVertex.hpp:13