refactor src/objects/rigging

This commit is contained in:
MihailRis
2024-07-07 23:44:57 +03:00
parent 0d230f2449
commit 2c7b5de50a
4 changed files with 23 additions and 24 deletions
+4 -2
View File
@@ -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,