mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 12:01:50 +00:00
refactor src/objects/rigging
This commit is contained in:
parent
0d230f2449
commit
2c7b5de50a
4 changed files with 23 additions and 24 deletions
|
|
@ -34,6 +34,7 @@ namespace rigging {
|
|||
std::string modelName;
|
||||
std::vector<std::unique_ptr<RigNode>> subnodes;
|
||||
model::Model* model = nullptr;
|
||||
bool modelUpdated = true;
|
||||
public:
|
||||
RigNode(
|
||||
size_t index,
|
||||
|
|
@ -41,7 +42,9 @@ namespace rigging {
|
|||
std::string model,
|
||||
std::vector<std::unique_ptr<RigNode>> subnodes);
|
||||
|
||||
void setModel(const Assets* assets, const std::string& name);
|
||||
void setModel(const std::string& name);
|
||||
|
||||
void refreshModel(const Assets* assets);
|
||||
|
||||
const std::string& getModelName() const {
|
||||
return modelName;
|
||||
|
|
@ -90,7 +93,6 @@ namespace rigging {
|
|||
size_t nodesCount);
|
||||
|
||||
void update(Rig& rig, glm::mat4 matrix) const;
|
||||
void setup(const Assets* assets, RigNode* node=nullptr) const;
|
||||
void render(
|
||||
Assets* assets,
|
||||
ModelBatch& batch,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue