Polyphase Game Engine
Loading...
Searching...
No Matches
BannerGltfExporter.h
Go to the documentation of this file.
1#pragma once
2
3#if EDITOR
4
5#include <cstdint>
6#include <string>
7
18namespace BannerGltfExporter
19{
20 struct Options
21 {
22 std::string mSceneName; // Scene asset name
23 std::string mOutputDir; // directory for banner.gltf/.bin/tex_*.png (trailing slash)
24 bool mRotate = true; // false = static model
25 float mSpinDegreesPerSec = 30.0f; // angular speed (0 = static); negative reverses a full spin
26 float mRotMinDeg = 0.0f; // rotation range about the vertical axis. A span of
27 float mRotMaxDeg = 360.0f; // 360 or more = continuous spin, less = sway between the two
28 uint32_t mMaxTextureSize = 256; // textures are downscaled to POT <= this
29 };
30
32 std::string Export(const Options& options, std::string& outError);
33}
34
35#endif /* EDITOR */