refactor src/objects/rigging
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user