mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 04:51:49 +00:00
feat: named bones and skeleton building
This commit is contained in:
parent
495e5fa994
commit
c34cb57fb8
6 changed files with 147 additions and 15 deletions
|
|
@ -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
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue