stuff
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user