feat: named bones and skeleton building

This commit is contained in:
MihailRis 2026-01-15 21:51:39 +03:00
parent 495e5fa994
commit c34cb57fb8
6 changed files with 147 additions and 15 deletions

View file

@ -2,12 +2,24 @@
#include <memory>
#include <string>
#include <unordered_map>
namespace model {
struct Model;
#include "graphics/commons/Model.hpp"
namespace rigging {
class SkeletonConfig;
}
namespace vcm {
struct VcmModel {
std::unordered_map<std::string, model::Model> parts;
std::unique_ptr<rigging::SkeletonConfig> skeleton;
};
VcmModel parseFull(
std::string_view file, std::string_view src, bool usexml
);
std::unique_ptr<model::Model> parse(
std::string_view file, std::string_view src, bool usexml
);