mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-11 07:18:11 -05:00
chore: add output implementations for gltf and glb
This commit is contained in:
25
src/ObjWriting/XModel/Gltf/GltfOutput.h
Normal file
25
src/ObjWriting/XModel/Gltf/GltfOutput.h
Normal file
@ -0,0 +1,25 @@
|
||||
#pragma once
|
||||
|
||||
#include <nlohmann/json_fwd.hpp>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
|
||||
namespace gltf
|
||||
{
|
||||
class Output
|
||||
{
|
||||
protected:
|
||||
Output() = default;
|
||||
virtual ~Output() = default;
|
||||
Output(const Output& other) = default;
|
||||
Output(Output&& other) noexcept = default;
|
||||
Output& operator=(const Output& other) = default;
|
||||
Output& operator=(Output&& other) noexcept = default;
|
||||
|
||||
public:
|
||||
virtual std::optional<std::string> CreateBufferUri(const void* buffer, size_t bufferSize) const = 0;
|
||||
virtual void EmitJson(const nlohmann::json& json) const = 0;
|
||||
virtual void EmitBuffer(const void* buffer, size_t bufferSize) const = 0;
|
||||
virtual void Finalize() const = 0;
|
||||
};
|
||||
} // namespace gltf
|
Reference in New Issue
Block a user