Kelsidavis-WoWee/tools/editor/cli_glb_inspect.hpp
Kelsi 9362623297 refactor(editor): extract GLB inspectors into cli_glb_inspect.cpp
Moves all 4 GLB introspection handlers (--validate-glb /
--info-glb shared, --info-glb-tree, --info-glb-bytes,
--check-glb-bounds) out of main.cpp into a new
cli_glb_inspect.{hpp,cpp} module. GLB is our open replacement
for proprietary M2/WMO bake outputs, so these belong with the
other open-format tooling.

main.cpp shrinks by 657 lines (10,121 to 9,464). Every
handler preserves its --json output mode for machine-readable
reports.
2026-05-09 06:46:02 -07:00

24 lines
857 B
C++

#pragma once
namespace wowee {
namespace editor {
namespace cli {
// Dispatch the GLB introspection / validation handlers. GLB is
// our open replacement for proprietary M2/WMO bake outputs;
// these handlers help debug what the baker produced and verify
// the result is glTF-2.0 compliant.
// --validate-glb / --info-glb shared parser, different verdict
// --info-glb-tree tree-style scene/node/mesh dump
// --info-glb-bytes per-section + per-bufferView size table
// --check-glb-bounds cross-check accessor min/max vs BIN data
//
// All four support an optional trailing `--json` flag for
// machine-readable output.
//
// Returns true if matched; outRc holds the exit code.
bool handleGlbInspect(int& i, int argc, char** argv, int& outRc);
} // namespace cli
} // namespace editor
} // namespace wowee