From 6143042c67f5e7adb0e64a81ebaa9c89e398a541 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 12 Jun 2023 01:12:32 +0200 Subject: wip --- main/draw.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'main/draw.cpp') diff --git a/main/draw.cpp b/main/draw.cpp index 909dc13f..2c3156b0 100644 --- a/main/draw.cpp +++ b/main/draw.cpp @@ -116,6 +116,13 @@ auto main_impl::get_draw_bounds() const noexcept -> draw_bounds void main_impl::draw_lights_for_chunk(chunk& c, chunk_coords_ ch, Vector2b neighbor_offset) noexcept { + for (const auto& e_ : c.entities()) + { + const auto& e = *e_; + if (e.type_of() != entity_type::light) + continue; + // todo + } } void main_impl::draw_lights(chunk& c, chunk_coords_ ch, const std::array& ns) noexcept -- cgit v1.2.3