This commit is contained in:
2026-09-24 05:31:38 +00:00
parent 6a50cdb4e8
commit 97267f1a26
3 changed files with 30 additions and 2 deletions
+7
View File
@@ -24,6 +24,13 @@ void SceneRenderer::render(const Scene& scene, Entity camera,
auto& registry = scene.registry;
auto view = registry.view<MeshComponent, TransformComponent>();
for (auto entity : view) {
auto& transform = view.get<TransformComponent>(entity);
log::info(transform);
}
// Get all mesh
// For each mesh, get all entities(ES) that have a transform and that mesh
// For e in ES: add e's transform component to a list