/* * Copyright (C) 2022 Riyyi * * SPDX-License-Identifier: MIT */ #pragma once #include // uint32_t #include // std::shared_ptr #include // std::string #include // std::pair namespace Inferno { class GltfFile { public: static std::pair, std::shared_ptr> read(const std::string& path); private: static std::pair, std::shared_ptr> glb(const std::string& path); static std::pair, uint32_t> readChunk(std::ifstream& ifstream, uint32_t offset, uint32_t type); }; } // namespace Inferno