voxelcore/src/coders/vcm.hpp
2026-01-15 22:57:04 +03:00

27 lines
545 B
C++

#pragma once
#include <memory>
#include <string>
#include <optional>
#include <unordered_map>
#include "graphics/commons/Model.hpp"
#include "objects/rigging.hpp"
namespace rigging {
class SkeletonConfig;
}
namespace vcm {
struct VcmModel {
std::unordered_map<std::string, model::Model> parts;
std::optional<rigging::SkeletonConfig> skeleton;
model::Model& squash();
model::Model squashed() const;
};
VcmModel parse(
std::string_view file, std::string_view src, bool usexml
);
}