Kelsidavis-WoWee/tools/editor/cli_mesh_info.hpp
Kelsi 25660a0d8b refactor(editor): move 2 more mesh-info handlers into cli_mesh_info.cpp
Adds --info-mesh-storage-budget and --info-project-models-total
to the existing cli_mesh_info module so all 5 mesh-aggregate
info handlers live together. The first computes per-category
byte breakdowns for a single WOM (positions / normals / UVs /
indices / bones / animations); the second walks every zone in
a project for an aggregate WOM/WOB rollup with per-zone rows.

main.cpp shrinks by 250 lines (1,437 to 1,187). All five
handlers preserve --json output for capacity-planning pipelines.
2026-05-09 09:49:39 -07:00

23 lines
780 B
C++

#pragma once
namespace wowee {
namespace editor {
namespace cli {
// Dispatch the mesh-aggregate info handlers — surface
// vertex/triangle/bone/animation totals across WOM/WOB
// files, plus per-mesh detail views.
// --info-zone-models-total aggregate WOM/WOB across a zone
// --list-zone-meshes-detail per-mesh table sorted by tris
// --info-mesh single-WOM detail dump
// --info-mesh-storage-budget per-category byte breakdown of a WOM
// --info-project-models-total aggregate across every zone in a project
//
// All five support --json output.
//
// Returns true if matched; outRc holds the exit code.
bool handleMeshInfo(int& i, int argc, char** argv, int& outRc);
} // namespace cli
} // namespace editor
} // namespace wowee