refactor WorldRenderer

This commit is contained in:
MihailRis 2024-11-14 06:13:53 +03:00
parent f9f4d2037f
commit e9163f4228
6 changed files with 19 additions and 17 deletions

View file

@ -32,7 +32,7 @@ namespace rigging {
model::Model* model;
bool updateFlag;
void refresh(const Assets* assets);
void refresh(const Assets& assets);
};
class Bone {
@ -111,7 +111,7 @@ namespace rigging {
void update(Skeleton& skeleton, glm::mat4 matrix) const;
void render(
Assets* assets,
const Assets& assets,
ModelBatch& batch,
Skeleton& skeleton,
const glm::mat4& matrix