mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 05:51:51 +00:00
add hand skeleton
This commit is contained in:
parent
d06a208188
commit
5632c9ccfe
10 changed files with 226 additions and 67 deletions
23
src/graphics/render/NamedSkeletons.hpp
Normal file
23
src/graphics/render/NamedSkeletons.hpp
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
|
||||
namespace rigging {
|
||||
struct Skeleton;
|
||||
class SkeletonConfig;
|
||||
}
|
||||
|
||||
class NamedSkeletons {
|
||||
public:
|
||||
NamedSkeletons();
|
||||
|
||||
std::shared_ptr<rigging::Skeleton> createSkeleton(
|
||||
const std::string& name, const rigging::SkeletonConfig* config
|
||||
);
|
||||
|
||||
rigging::Skeleton* getSkeleton(const std::string& name);
|
||||
private:
|
||||
std::unordered_map<std::string, std::shared_ptr<rigging::Skeleton>> skeletons;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue