mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-10 23:08:05 -05:00
chore: add output implementations for gltf and glb
This commit is contained in:
22
src/ObjWriting/XModel/Gltf/GltfTextOutput.h
Normal file
22
src/ObjWriting/XModel/Gltf/GltfTextOutput.h
Normal file
@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
#include "GltfOutput.h"
|
||||
|
||||
#include <ostream>
|
||||
|
||||
namespace gltf
|
||||
{
|
||||
class TextOutput final : public Output
|
||||
{
|
||||
public:
|
||||
explicit TextOutput(std::ostream& stream);
|
||||
|
||||
std::optional<std::string> CreateBufferUri(const void* buffer, size_t bufferSize) const override;
|
||||
void EmitJson(const nlohmann::json& json) const override;
|
||||
void EmitBuffer(const void* buffer, size_t bufferSize) const override;
|
||||
void Finalize() const override;
|
||||
|
||||
private:
|
||||
std::ostream& m_stream;
|
||||
};
|
||||
} // namespace gltf
|
Reference in New Issue
Block a user