mirror of
https://github.com/syoyo/tinygltf.git
synced 2026-06-08 03:03:50 +00:00
21 lines
396 B
C++
21 lines
396 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
#include <tiny_gltf.h>
|
|
|
|
namespace gltfutil {
|
|
class texture_dumper {
|
|
public:
|
|
enum class texture_output_format { png, bmp, tga };
|
|
|
|
private:
|
|
const tinygltf::Model& model;
|
|
texture_output_format configured_format;
|
|
|
|
public:
|
|
texture_dumper(const tinygltf::Model& inputModel);
|
|
void dump_to_folder(const std::string& path = "./");
|
|
};
|
|
} // namespace gltfutil
|